{"action":"created","comment":{"url":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/comments/27101275","id":27101275,"diff_hunk":"@@ -104,35 +96,57 @@ void RequestHandler::processGET_( const ::zeq::Event& event )\n     requestLock_.lock();\n }\n \n-void RequestHandler::processPOST_( const ::zeq::Event& event )\n+void RequestHandler::processPOST_( const zeq::Event& event )\n {\n     publisher_->publish( event  );\n     std::ostringstream data;\n     response_ = server::response::stock_reply( server::response::ok, data.str() );\n }\n \n-void RequestHandler::onKnownEvent_( const ::zeq::Event& event )\n+void RequestHandler::onKnownEvent_( const zeq::Event& event )\n {\n     response_ = server::response::stock_reply( server::response::ok,\n-                                               ::zeq::vocabulary::deserializeJSON( event) );\n+                                               zeq::vocabulary::deserializeJSON( event) );\n     requestLock_.unlock();\n }\n \n-void RequestHandler::onFirstHeartbeatEvent_()\n+void RequestHandler::onStartupHeartbeatEvent_()\n {\n-    LBVERB << \"Asked For Vocabulary.\" << std::endl;\n-    const ::zeq::Event& zeqEvent =\n-            ::zeq::vocabulary::serializeRequest( ::zeq::vocabulary::EVENT_VOCABULARY );\n+    const zeq::Event& zeqEvent =\n+            zeq::vocabulary::serializeRequest( zeq::vocabulary::EVENT_VOCABULARY );\n     publisher_->publish( zeqEvent );\n-    subscriber_->deregisterHandler( ::zeq::vocabulary::EVENT_HEARTBEAT );\n-    subscriber_->registerHandler( ::zeq::vocabulary::EVENT_HEARTBEAT,\n-                                  boost::bind( &RequestHandler::onHeartbeatEvent_, this ));\n }\n+\n void RequestHandler::onHeartbeatEvent_()\n {\n     LBVERB << \"Heartbeat event received.\" << std::endl;\n }\n \n+void RequestHandler::onVocabularyEvent_( const zeq::Event& event )\n+{\n+    subscriber_->deregisterHandler( zeq::vocabulary::EVENT_HEARTBEAT );\n+    subscriber_->registerHandler( zeq::vocabulary::EVENT_HEARTBEAT,\n+                                  boost::bind( &RequestHandler::onHeartbeatEvent_, this ) );\n+    zeq::EventDescriptors eventDescriptors = zeq::vocabulary::deserializeVocabulary( event );\n+\n+","path":"restconnector/RequestHandler.cpp","position":110,"original_position":110,"commit_id":"302b61b2c10f68beba6c46d89ea36a498c3dd694","original_commit_id":"302b61b2c10f68beba6c46d89ea36a498c3dd694","user":{"login":"eile","id":354947,"avatar_url":"https://avatars.githubusercontent.com/u/354947?v=3","gravatar_id":"","url":"https://api.github.com/users/eile","html_url":"https://github.com/eile","followers_url":"https://api.github.com/users/eile/followers","following_url":"https://api.github.com/users/eile/following{/other_user}","gists_url":"https://api.github.com/users/eile/gists{/gist_id}","starred_url":"https://api.github.com/users/eile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eile/subscriptions","organizations_url":"https://api.github.com/users/eile/orgs","repos_url":"https://api.github.com/users/eile/repos","events_url":"https://api.github.com/users/eile/events{/privacy}","received_events_url":"https://api.github.com/users/eile/received_events","type":"User","site_admin":false},"body":"rm one line","created_at":"2015-03-25T08:19:12Z","updated_at":"2015-03-25T08:19:12Z","html_url":"https://github.com/BlueBrain/RESTConnector/pull/6#discussion_r27101275","pull_request_url":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/comments/27101275"},"html":{"href":"https://github.com/BlueBrain/RESTConnector/pull/6#discussion_r27101275"},"pull_request":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/6","id":31840424,"html_url":"https://github.com/BlueBrain/RESTConnector/pull/6","diff_url":"https://github.com/BlueBrain/RESTConnector/pull/6.diff","patch_url":"https://github.com/BlueBrain/RESTConnector/pull/6.patch","issue_url":"https://api.github.com/repos/BlueBrain/RESTConnector/issues/6","number":6,"state":"open","locked":false,"title":"RESTConnector ask for events and register it","user":{"login":"chevtche","id":10452408,"avatar_url":"https://avatars.githubusercontent.com/u/10452408?v=3","gravatar_id":"","url":"https://api.github.com/users/chevtche","html_url":"https://github.com/chevtche","followers_url":"https://api.github.com/users/chevtche/followers","following_url":"https://api.github.com/users/chevtche/following{/other_user}","gists_url":"https://api.github.com/users/chevtche/gists{/gist_id}","starred_url":"https://api.github.com/users/chevtche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chevtche/subscriptions","organizations_url":"https://api.github.com/users/chevtche/orgs","repos_url":"https://api.github.com/users/chevtche/repos","events_url":"https://api.github.com/users/chevtche/events{/privacy}","received_events_url":"https://api.github.com/users/chevtche/received_events","type":"User","site_admin":false},"body":"Change-Id: Id326c3c3e52b01a59d98d1757746e70416d6aeea","created_at":"2015-03-24T15:56:08Z","updated_at":"2015-03-25T08:19:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"600b173e0d9a32c24750a56513da01718f98d9ca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/6/commits","review_comments_url":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/6/comments","review_comment_url":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BlueBrain/RESTConnector/issues/6/comments","statuses_url":"https://api.github.com/repos/BlueBrain/RESTConnector/statuses/302b61b2c10f68beba6c46d89ea36a498c3dd694","head":{"label":"chevtche:master","ref":"master","sha":"302b61b2c10f68beba6c46d89ea36a498c3dd694","user":{"login":"chevtche","id":10452408,"avatar_url":"https://avatars.githubusercontent.com/u/10452408?v=3","gravatar_id":"","url":"https://api.github.com/users/chevtche","html_url":"https://github.com/chevtche","followers_url":"https://api.github.com/users/chevtche/followers","following_url":"https://api.github.com/users/chevtche/following{/other_user}","gists_url":"https://api.github.com/users/chevtche/gists{/gist_id}","starred_url":"https://api.github.com/users/chevtche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chevtche/subscriptions","organizations_url":"https://api.github.com/users/chevtche/orgs","repos_url":"https://api.github.com/users/chevtche/repos","events_url":"https://api.github.com/users/chevtche/events{/privacy}","received_events_url":"https://api.github.com/users/chevtche/received_events","type":"User","site_admin":false},"repo":{"id":30925249,"name":"RESTConnector","full_name":"chevtche/RESTConnector","owner":{"login":"chevtche","id":10452408,"avatar_url":"https://avatars.githubusercontent.com/u/10452408?v=3","gravatar_id":"","url":"https://api.github.com/users/chevtche","html_url":"https://github.com/chevtche","followers_url":"https://api.github.com/users/chevtche/followers","following_url":"https://api.github.com/users/chevtche/following{/other_user}","gists_url":"https://api.github.com/users/chevtche/gists{/gist_id}","starred_url":"https://api.github.com/users/chevtche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chevtche/subscriptions","organizations_url":"https://api.github.com/users/chevtche/orgs","repos_url":"https://api.github.com/users/chevtche/repos","events_url":"https://api.github.com/users/chevtche/events{/privacy}","received_events_url":"https://api.github.com/users/chevtche/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chevtche/RESTConnector","description":"Exposes a REST interface for C++ applications","fork":true,"url":"https://api.github.com/repos/chevtche/RESTConnector","forks_url":"https://api.github.com/repos/chevtche/RESTConnector/forks","keys_url":"https://api.github.com/repos/chevtche/RESTConnector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chevtche/RESTConnector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chevtche/RESTConnector/teams","hooks_url":"https://api.github.com/repos/chevtche/RESTConnector/hooks","issue_events_url":"https://api.github.com/repos/chevtche/RESTConnector/issues/events{/number}","events_url":"https://api.github.com/repos/chevtche/RESTConnector/events","assignees_url":"https://api.github.com/repos/chevtche/RESTConnector/assignees{/user}","branches_url":"https://api.github.com/repos/chevtche/RESTConnector/branches{/branch}","tags_url":"https://api.github.com/repos/chevtche/RESTConnector/tags","blobs_url":"https://api.github.com/repos/chevtche/RESTConnector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chevtche/RESTConnector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chevtche/RESTConnector/git/refs{/sha}","trees_url":"https://api.github.com/repos/chevtche/RESTConnector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chevtche/RESTConnector/statuses/{sha}","languages_url":"https://api.github.com/repos/chevtche/RESTConnector/languages","stargazers_url":"https://api.github.com/repos/chevtche/RESTConnector/stargazers","contributors_url":"https://api.github.com/repos/chevtche/RESTConnector/contributors","subscribers_url":"https://api.github.com/repos/chevtche/RESTConnector/subscribers","subscription_url":"https://api.github.com/repos/chevtche/RESTConnector/subscription","commits_url":"https://api.github.com/repos/chevtche/RESTConnector/commits{/sha}","git_commits_url":"https://api.github.com/repos/chevtche/RESTConnector/git/commits{/sha}","comments_url":"https://api.github.com/repos/chevtche/RESTConnector/comments{/number}","issue_comment_url":"https://api.github.com/repos/chevtche/RESTConnector/issues/comments{/number}","contents_url":"https://api.github.com/repos/chevtche/RESTConnector/contents/{+path}","compare_url":"https://api.github.com/repos/chevtche/RESTConnector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chevtche/RESTConnector/merges","archive_url":"https://api.github.com/repos/chevtche/RESTConnector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chevtche/RESTConnector/downloads","issues_url":"https://api.github.com/repos/chevtche/RESTConnector/issues{/number}","pulls_url":"https://api.github.com/repos/chevtche/RESTConnector/pulls{/number}","milestones_url":"https://api.github.com/repos/chevtche/RESTConnector/milestones{/number}","notifications_url":"https://api.github.com/repos/chevtche/RESTConnector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chevtche/RESTConnector/labels{/name}","releases_url":"https://api.github.com/repos/chevtche/RESTConnector/releases{/id}","created_at":"2015-02-17T16:15:54Z","updated_at":"2015-03-24T17:07:11Z","pushed_at":"2015-03-24T17:07:11Z","git_url":"git://github.com/chevtche/RESTConnector.git","ssh_url":"git@github.com:chevtche/RESTConnector.git","clone_url":"https://github.com/chevtche/RESTConnector.git","svn_url":"https://github.com/chevtche/RESTConnector","homepage":null,"size":169,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"BlueBrain:master","ref":"master","sha":"cf89aa6b00f1e9c0de034cdbef2e74cdd72a26da","user":{"login":"BlueBrain","id":1479142,"avatar_url":"https://avatars.githubusercontent.com/u/1479142?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueBrain","html_url":"https://github.com/BlueBrain","followers_url":"https://api.github.com/users/BlueBrain/followers","following_url":"https://api.github.com/users/BlueBrain/following{/other_user}","gists_url":"https://api.github.com/users/BlueBrain/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueBrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueBrain/subscriptions","organizations_url":"https://api.github.com/users/BlueBrain/orgs","repos_url":"https://api.github.com/users/BlueBrain/repos","events_url":"https://api.github.com/users/BlueBrain/events{/privacy}","received_events_url":"https://api.github.com/users/BlueBrain/received_events","type":"Organization","site_admin":false},"repo":{"id":29182982,"name":"RESTConnector","full_name":"BlueBrain/RESTConnector","owner":{"login":"BlueBrain","id":1479142,"avatar_url":"https://avatars.githubusercontent.com/u/1479142?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueBrain","html_url":"https://github.com/BlueBrain","followers_url":"https://api.github.com/users/BlueBrain/followers","following_url":"https://api.github.com/users/BlueBrain/following{/other_user}","gists_url":"https://api.github.com/users/BlueBrain/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueBrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueBrain/subscriptions","organizations_url":"https://api.github.com/users/BlueBrain/orgs","repos_url":"https://api.github.com/users/BlueBrain/repos","events_url":"https://api.github.com/users/BlueBrain/events{/privacy}","received_events_url":"https://api.github.com/users/BlueBrain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BlueBrain/RESTConnector","description":"Exposes a REST interface for C++ applications","fork":false,"url":"https://api.github.com/repos/BlueBrain/RESTConnector","forks_url":"https://api.github.com/repos/BlueBrain/RESTConnector/forks","keys_url":"https://api.github.com/repos/BlueBrain/RESTConnector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BlueBrain/RESTConnector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BlueBrain/RESTConnector/teams","hooks_url":"https://api.github.com/repos/BlueBrain/RESTConnector/hooks","issue_events_url":"https://api.github.com/repos/BlueBrain/RESTConnector/issues/events{/number}","events_url":"https://api.github.com/repos/BlueBrain/RESTConnector/events","assignees_url":"https://api.github.com/repos/BlueBrain/RESTConnector/assignees{/user}","branches_url":"https://api.github.com/repos/BlueBrain/RESTConnector/branches{/branch}","tags_url":"https://api.github.com/repos/BlueBrain/RESTConnector/tags","blobs_url":"https://api.github.com/repos/BlueBrain/RESTConnector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BlueBrain/RESTConnector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BlueBrain/RESTConnector/git/refs{/sha}","trees_url":"https://api.github.com/repos/BlueBrain/RESTConnector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BlueBrain/RESTConnector/statuses/{sha}","languages_url":"https://api.github.com/repos/BlueBrain/RESTConnector/languages","stargazers_url":"https://api.github.com/repos/BlueBrain/RESTConnector/stargazers","contributors_url":"https://api.github.com/repos/BlueBrain/RESTConnector/contributors","subscribers_url":"https://api.github.com/repos/BlueBrain/RESTConnector/subscribers","subscription_url":"https://api.github.com/repos/BlueBrain/RESTConnector/subscription","commits_url":"https://api.github.com/repos/BlueBrain/RESTConnector/commits{/sha}","git_commits_url":"https://api.github.com/repos/BlueBrain/RESTConnector/git/commits{/sha}","comments_url":"https://api.github.com/repos/BlueBrain/RESTConnector/comments{/number}","issue_comment_url":"https://api.github.com/repos/BlueBrain/RESTConnector/issues/comments{/number}","contents_url":"https://api.github.com/repos/BlueBrain/RESTConnector/contents/{+path}","compare_url":"https://api.github.com/repos/BlueBrain/RESTConnector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BlueBrain/RESTConnector/merges","archive_url":"https://api.github.com/repos/BlueBrain/RESTConnector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BlueBrain/RESTConnector/downloads","issues_url":"https://api.github.com/repos/BlueBrain/RESTConnector/issues{/number}","pulls_url":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls{/number}","milestones_url":"https://api.github.com/repos/BlueBrain/RESTConnector/milestones{/number}","notifications_url":"https://api.github.com/repos/BlueBrain/RESTConnector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BlueBrain/RESTConnector/labels{/name}","releases_url":"https://api.github.com/repos/BlueBrain/RESTConnector/releases{/id}","created_at":"2015-01-13T09:36:54Z","updated_at":"2015-03-23T15:51:35Z","pushed_at":"2015-03-24T17:07:11Z","git_url":"git://github.com/BlueBrain/RESTConnector.git","ssh_url":"git@github.com:BlueBrain/RESTConnector.git","clone_url":"https://github.com/BlueBrain/RESTConnector.git","svn_url":"https://github.com/BlueBrain/RESTConnector","homepage":null,"size":314,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/6"},"html":{"href":"https://github.com/BlueBrain/RESTConnector/pull/6"},"issue":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/issues/6"},"comments":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/BlueBrain/RESTConnector/statuses/302b61b2c10f68beba6c46d89ea36a498c3dd694"}}}}