{"action":"created","comment":{"url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/pulls/comments/204870801","pull_request_review_id":140029506,"id":204870801,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNDg3MDgwMQ==","diff_hunk":"@@ -260,8 +264,20 @@ void start(final int port) throws Exception {\n     ServletContainer sc = new ServletContainer(rc);\n     ServletHolder holder = new ServletHolder(sc);\n     context.addServlet(holder, \"/*\");\n-\n-    jettyServer.start();\n+    \n+    ServerConnector connector = new ServerConnector(jettyServer);\n+    connector.setHost(hostInfo.host());\n+    connector.setPort(port);\n+    jettyServer.addConnector(connector);\n+  \n+    context.start();\n+    \n+    try {\n+      jettyServer.start();\n+    } catch (java.net.SocketException exception) {","path":"src/main/java/io/confluent/examples/streams/interactivequeries/WordCountInteractiveQueriesRestService.java","position":48,"original_position":48,"commit_id":"78214a91f970c0f4cd6d2fbdffeab1a8dc3a918a","original_commit_id":"78214a91f970c0f4cd6d2fbdffeab1a8dc3a918a","user":{"login":"mjsax","id":8959638,"node_id":"MDQ6VXNlcjg5NTk2Mzg=","avatar_url":"https://avatars1.githubusercontent.com/u/8959638?v=4","gravatar_id":"","url":"https://api.github.com/users/mjsax","html_url":"https://github.com/mjsax","followers_url":"https://api.github.com/users/mjsax/followers","following_url":"https://api.github.com/users/mjsax/following{/other_user}","gists_url":"https://api.github.com/users/mjsax/gists{/gist_id}","starred_url":"https://api.github.com/users/mjsax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjsax/subscriptions","organizations_url":"https://api.github.com/users/mjsax/orgs","repos_url":"https://api.github.com/users/mjsax/repos","events_url":"https://api.github.com/users/mjsax/events{/privacy}","received_events_url":"https://api.github.com/users/mjsax/received_events","type":"User","site_admin":false},"body":"nit: add `final`","created_at":"2018-07-24T18:48:13Z","updated_at":"2018-07-24T19:01:12Z","html_url":"https://github.com/confluentinc/kafka-streams-examples/pull/128#discussion_r204870801","pull_request_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/pulls/128","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/confluentinc/kafka-streams-examples/pulls/comments/204870801"},"html":{"href":"https://github.com/confluentinc/kafka-streams-examples/pull/128#discussion_r204870801"},"pull_request":{"href":"https://api.github.com/repos/confluentinc/kafka-streams-examples/pulls/128"}}},"pull_request":{"url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/pulls/128","id":195782722,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NzgyNzIy","html_url":"https://github.com/confluentinc/kafka-streams-examples/pull/128","diff_url":"https://github.com/confluentinc/kafka-streams-examples/pull/128.diff","patch_url":"https://github.com/confluentinc/kafka-streams-examples/pull/128.patch","issue_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/issues/128","number":128,"state":"open","locked":false,"title":"Fixed host issue for kafka-interactive-queries","user":{"login":"nehabhardwaj01","id":25057008,"node_id":"MDQ6VXNlcjI1MDU3MDA4","avatar_url":"https://avatars2.githubusercontent.com/u/25057008?v=4","gravatar_id":"","url":"https://api.github.com/users/nehabhardwaj01","html_url":"https://github.com/nehabhardwaj01","followers_url":"https://api.github.com/users/nehabhardwaj01/followers","following_url":"https://api.github.com/users/nehabhardwaj01/following{/other_user}","gists_url":"https://api.github.com/users/nehabhardwaj01/gists{/gist_id}","starred_url":"https://api.github.com/users/nehabhardwaj01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nehabhardwaj01/subscriptions","organizations_url":"https://api.github.com/users/nehabhardwaj01/orgs","repos_url":"https://api.github.com/users/nehabhardwaj01/repos","events_url":"https://api.github.com/users/nehabhardwaj01/events{/privacy}","received_events_url":"https://api.github.com/users/nehabhardwaj01/received_events","type":"User","site_admin":false},"body":"Currently, any string provided as the APPLICATION_HOST will start the REST Service on localhost (0.0.0.0).\r\n\r\nThis fix will enhance the functionality by- \r\n- Validating the HOST and raising the exception for any invalid/ unreachable/ unavailable host.\r\n- Starts the REST service on the provided host and port (If valid). \r\n\r\nIssue link: https://github.com/confluentinc/kafka-streams-examples/issues/127\r\n","created_at":"2018-06-19T10:36:41Z","updated_at":"2018-07-24T19:01:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e04b102e851cc73b23279b34afc633bd637744ed","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/pulls/128/commits","review_comments_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/pulls/128/comments","review_comment_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/issues/128/comments","statuses_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/statuses/78214a91f970c0f4cd6d2fbdffeab1a8dc3a918a","head":{"label":"nehabhardwaj01:bugfix/issue-127","ref":"bugfix/issue-127","sha":"78214a91f970c0f4cd6d2fbdffeab1a8dc3a918a","user":{"login":"nehabhardwaj01","id":25057008,"node_id":"MDQ6VXNlcjI1MDU3MDA4","avatar_url":"https://avatars2.githubusercontent.com/u/25057008?v=4","gravatar_id":"","url":"https://api.github.com/users/nehabhardwaj01","html_url":"https://github.com/nehabhardwaj01","followers_url":"https://api.github.com/users/nehabhardwaj01/followers","following_url":"https://api.github.com/users/nehabhardwaj01/following{/other_user}","gists_url":"https://api.github.com/users/nehabhardwaj01/gists{/gist_id}","starred_url":"https://api.github.com/users/nehabhardwaj01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nehabhardwaj01/subscriptions","organizations_url":"https://api.github.com/users/nehabhardwaj01/orgs","repos_url":"https://api.github.com/users/nehabhardwaj01/repos","events_url":"https://api.github.com/users/nehabhardwaj01/events{/privacy}","received_events_url":"https://api.github.com/users/nehabhardwaj01/received_events","type":"User","site_admin":false},"repo":{"id":137870730,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc4NzA3MzA=","name":"kafka-streams-examples","full_name":"nehabhardwaj01/kafka-streams-examples","owner":{"login":"nehabhardwaj01","id":25057008,"node_id":"MDQ6VXNlcjI1MDU3MDA4","avatar_url":"https://avatars2.githubusercontent.com/u/25057008?v=4","gravatar_id":"","url":"https://api.github.com/users/nehabhardwaj01","html_url":"https://github.com/nehabhardwaj01","followers_url":"https://api.github.com/users/nehabhardwaj01/followers","following_url":"https://api.github.com/users/nehabhardwaj01/following{/other_user}","gists_url":"https://api.github.com/users/nehabhardwaj01/gists{/gist_id}","starred_url":"https://api.github.com/users/nehabhardwaj01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nehabhardwaj01/subscriptions","organizations_url":"https://api.github.com/users/nehabhardwaj01/orgs","repos_url":"https://api.github.com/users/nehabhardwaj01/repos","events_url":"https://api.github.com/users/nehabhardwaj01/events{/privacy}","received_events_url":"https://api.github.com/users/nehabhardwaj01/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nehabhardwaj01/kafka-streams-examples","description":"Demo applications and code examples for Apache Kafka's Streams API.","fork":true,"url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples","forks_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/forks","keys_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/teams","hooks_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/hooks","issue_events_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/issues/events{/number}","events_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/events","assignees_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/assignees{/user}","branches_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/branches{/branch}","tags_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/tags","blobs_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/languages","stargazers_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/stargazers","contributors_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/contributors","subscribers_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/subscribers","subscription_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/subscription","commits_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/contents/{+path}","compare_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/merges","archive_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/downloads","issues_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/issues{/number}","pulls_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/labels{/name}","releases_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/releases{/id}","deployments_url":"https://api.github.com/repos/nehabhardwaj01/kafka-streams-examples/deployments","created_at":"2018-06-19T09:36:02Z","updated_at":"2018-06-19T09:36:04Z","pushed_at":"2018-06-22T14:28:01Z","git_url":"git://github.com/nehabhardwaj01/kafka-streams-examples.git","ssh_url":"git@github.com:nehabhardwaj01/kafka-streams-examples.git","clone_url":"https://github.com/nehabhardwaj01/kafka-streams-examples.git","svn_url":"https://github.com/nehabhardwaj01/kafka-streams-examples","homepage":"","size":1326,"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","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"4.1.0-post"}},"base":{"label":"confluentinc:4.1.0-post","ref":"4.1.0-post","sha":"24d3805f8d7799732273291855db68700873f4cd","user":{"login":"confluentinc","id":9439498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0Mzk0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/9439498?v=4","gravatar_id":"","url":"https://api.github.com/users/confluentinc","html_url":"https://github.com/confluentinc","followers_url":"https://api.github.com/users/confluentinc/followers","following_url":"https://api.github.com/users/confluentinc/following{/other_user}","gists_url":"https://api.github.com/users/confluentinc/gists{/gist_id}","starred_url":"https://api.github.com/users/confluentinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confluentinc/subscriptions","organizations_url":"https://api.github.com/users/confluentinc/orgs","repos_url":"https://api.github.com/users/confluentinc/repos","events_url":"https://api.github.com/users/confluentinc/events{/privacy}","received_events_url":"https://api.github.com/users/confluentinc/received_events","type":"Organization","site_admin":false},"repo":{"id":100753606,"node_id":"MDEwOlJlcG9zaXRvcnkxMDA3NTM2MDY=","name":"kafka-streams-examples","full_name":"confluentinc/kafka-streams-examples","owner":{"login":"confluentinc","id":9439498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0Mzk0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/9439498?v=4","gravatar_id":"","url":"https://api.github.com/users/confluentinc","html_url":"https://github.com/confluentinc","followers_url":"https://api.github.com/users/confluentinc/followers","following_url":"https://api.github.com/users/confluentinc/following{/other_user}","gists_url":"https://api.github.com/users/confluentinc/gists{/gist_id}","starred_url":"https://api.github.com/users/confluentinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confluentinc/subscriptions","organizations_url":"https://api.github.com/users/confluentinc/orgs","repos_url":"https://api.github.com/users/confluentinc/repos","events_url":"https://api.github.com/users/confluentinc/events{/privacy}","received_events_url":"https://api.github.com/users/confluentinc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/confluentinc/kafka-streams-examples","description":"Demo applications and code examples for Apache Kafka's Streams API.","fork":false,"url":"https://api.github.com/repos/confluentinc/kafka-streams-examples","forks_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/forks","keys_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/teams","hooks_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/hooks","issue_events_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/issues/events{/number}","events_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/events","assignees_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/assignees{/user}","branches_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/branches{/branch}","tags_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/tags","blobs_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/languages","stargazers_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/stargazers","contributors_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/contributors","subscribers_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/subscribers","subscription_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/subscription","commits_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/contents/{+path}","compare_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/merges","archive_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/downloads","issues_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/issues{/number}","pulls_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/labels{/name}","releases_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/releases{/id}","deployments_url":"https://api.github.com/repos/confluentinc/kafka-streams-examples/deployments","created_at":"2017-08-18T22:07:36Z","updated_at":"2018-07-24T13:52:18Z","pushed_at":"2018-07-24T18:16:30Z","git_url":"git://github.com/confluentinc/kafka-streams-examples.git","ssh_url":"git@github.com:confluentinc/kafka-streams-examples.git","clone_url":"https://github.com/confluentinc/kafka-streams-examples.git","svn_url":"https://github.com/confluentinc/kafka-streams-examples","homepage":"","size":1365,"stargazers_count":372,"watchers_count":372,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":174,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":174,"open_issues":16,"watchers":372,"default_branch":"4.1.1-post"}},"_links":{"self":{"href":"https://api.github.com/repos/confluentinc/kafka-streams-examples/pulls/128"},"html":{"href":"https://github.com/confluentinc/kafka-streams-examples/pull/128"},"issue":{"href":"https://api.github.com/repos/confluentinc/kafka-streams-examples/issues/128"},"comments":{"href":"https://api.github.com/repos/confluentinc/kafka-streams-examples/issues/128/comments"},"review_comments":{"href":"https://api.github.com/repos/confluentinc/kafka-streams-examples/pulls/128/comments"},"review_comment":{"href":"https://api.github.com/repos/confluentinc/kafka-streams-examples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/confluentinc/kafka-streams-examples/pulls/128/commits"},"statuses":{"href":"https://api.github.com/repos/confluentinc/kafka-streams-examples/statuses/78214a91f970c0f4cd6d2fbdffeab1a8dc3a918a"}},"author_association":"NONE"}}
{"actor":{"display_login":"mjsax"}}