{"action":"created","comment":{"url":"https://api.github.com/repos/nus-ncl/services-in-one/pulls/comments/76180683","id":76180683,"diff_hunk":"@@ -257,6 +284,31 @@ public String deleteExperiment(String jsonString) {\n         return responseEntity.getBody().toString();\n     }\n \n+    /**\n+     * Retrieves the experiment status from Deterlab\n+     * @param jsonString Contains eid and pid\n+     * @return the status of the experiment, a \"no experiment found\" if the request fails\n+     */\n+    public String getExperimentStatus(String jsonString) {\n+        logger.info(\"Get experiment status - {} at {} : {}\", properties.getIp(), properties.getPort(), jsonString);\n+\n+        HttpHeaders headers = new HttpHeaders();\n+        headers.setContentType(MediaType.APPLICATION_JSON);\n+        HttpEntity<String> request = new HttpEntity<>(jsonString, headers);\n+\n+        ResponseEntity response;\n+\n+        try {\n+            response = restTemplate.exchange(properties.getExpStatus(), HttpMethod.POST, request, String.class);\n+        } catch (Exception e) {","path":"adapter-deterlab/src/main/java/sg/ncl/adapter/deterlab/AdapterDeterLab.java","position":87,"original_position":87,"commit_id":"d243da45eaf005f6ca43cb20903ba3e7f9f8fc68","original_commit_id":"d243da45eaf005f6ca43cb20903ba3e7f9f8fc68","user":{"login":"ChrisZhong","id":1946052,"avatar_url":"https://avatars.githubusercontent.com/u/1946052?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisZhong","html_url":"https://github.com/ChrisZhong","followers_url":"https://api.github.com/users/ChrisZhong/followers","following_url":"https://api.github.com/users/ChrisZhong/following{/other_user}","gists_url":"https://api.github.com/users/ChrisZhong/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisZhong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisZhong/subscriptions","organizations_url":"https://api.github.com/users/ChrisZhong/orgs","repos_url":"https://api.github.com/users/ChrisZhong/repos","events_url":"https://api.github.com/users/ChrisZhong/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisZhong/received_events","type":"User","site_admin":false},"body":"![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) Either log or rethrow this exception. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonarqube.com/coding_rules#rule_key=squid%3AS1166)\n","created_at":"2016-08-25T05:04:31Z","updated_at":"2016-08-25T05:04:31Z","html_url":"https://github.com/nus-ncl/services-in-one/pull/115#discussion_r76180683","pull_request_url":"https://api.github.com/repos/nus-ncl/services-in-one/pulls/115","_links":{"self":{"href":"https://api.github.com/repos/nus-ncl/services-in-one/pulls/comments/76180683"},"html":{"href":"https://github.com/nus-ncl/services-in-one/pull/115#discussion_r76180683"},"pull_request":{"href":"https://api.github.com/repos/nus-ncl/services-in-one/pulls/115"}}},"pull_request":{"url":"https://api.github.com/repos/nus-ncl/services-in-one/pulls/115","id":82657001,"html_url":"https://github.com/nus-ncl/services-in-one/pull/115","diff_url":"https://github.com/nus-ncl/services-in-one/pull/115.diff","patch_url":"https://github.com/nus-ncl/services-in-one/pull/115.patch","issue_url":"https://api.github.com/repos/nus-ncl/services-in-one/issues/115","number":115,"state":"open","locked":false,"title":"DEV-476","user":{"login":"teye","id":6906654,"avatar_url":"https://avatars.githubusercontent.com/u/6906654?v=3","gravatar_id":"","url":"https://api.github.com/users/teye","html_url":"https://github.com/teye","followers_url":"https://api.github.com/users/teye/followers","following_url":"https://api.github.com/users/teye/following{/other_user}","gists_url":"https://api.github.com/users/teye/gists{/gist_id}","starred_url":"https://api.github.com/users/teye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teye/subscriptions","organizations_url":"https://api.github.com/users/teye/orgs","repos_url":"https://api.github.com/users/teye/repos","events_url":"https://api.github.com/users/teye/events{/privacy}","received_events_url":"https://api.github.com/users/teye/received_events","type":"User","site_admin":false},"body":"\n\n<!-- Reviewable:start -->\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/nus-ncl/services-in-one/115)\n<!-- Reviewable:end -->\n","created_at":"2016-08-25T04:51:20Z","updated_at":"2016-08-25T05:04:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee031913c019582b508fcbae74574bcd84f0e5c5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/nus-ncl/services-in-one/pulls/115/commits","review_comments_url":"https://api.github.com/repos/nus-ncl/services-in-one/pulls/115/comments","review_comment_url":"https://api.github.com/repos/nus-ncl/services-in-one/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nus-ncl/services-in-one/issues/115/comments","statuses_url":"https://api.github.com/repos/nus-ncl/services-in-one/statuses/d243da45eaf005f6ca43cb20903ba3e7f9f8fc68","head":{"label":"nus-ncl:DEV-476","ref":"DEV-476","sha":"d243da45eaf005f6ca43cb20903ba3e7f9f8fc68","user":{"login":"nus-ncl","id":15359055,"avatar_url":"https://avatars.githubusercontent.com/u/15359055?v=3","gravatar_id":"","url":"https://api.github.com/users/nus-ncl","html_url":"https://github.com/nus-ncl","followers_url":"https://api.github.com/users/nus-ncl/followers","following_url":"https://api.github.com/users/nus-ncl/following{/other_user}","gists_url":"https://api.github.com/users/nus-ncl/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-ncl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-ncl/subscriptions","organizations_url":"https://api.github.com/users/nus-ncl/orgs","repos_url":"https://api.github.com/users/nus-ncl/repos","events_url":"https://api.github.com/users/nus-ncl/events{/privacy}","received_events_url":"https://api.github.com/users/nus-ncl/received_events","type":"Organization","site_admin":false},"repo":{"id":56112257,"name":"services-in-one","full_name":"nus-ncl/services-in-one","owner":{"login":"nus-ncl","id":15359055,"avatar_url":"https://avatars.githubusercontent.com/u/15359055?v=3","gravatar_id":"","url":"https://api.github.com/users/nus-ncl","html_url":"https://github.com/nus-ncl","followers_url":"https://api.github.com/users/nus-ncl/followers","following_url":"https://api.github.com/users/nus-ncl/following{/other_user}","gists_url":"https://api.github.com/users/nus-ncl/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-ncl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-ncl/subscriptions","organizations_url":"https://api.github.com/users/nus-ncl/orgs","repos_url":"https://api.github.com/users/nus-ncl/repos","events_url":"https://api.github.com/users/nus-ncl/events{/privacy}","received_events_url":"https://api.github.com/users/nus-ncl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nus-ncl/services-in-one","description":"","fork":false,"url":"https://api.github.com/repos/nus-ncl/services-in-one","forks_url":"https://api.github.com/repos/nus-ncl/services-in-one/forks","keys_url":"https://api.github.com/repos/nus-ncl/services-in-one/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nus-ncl/services-in-one/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nus-ncl/services-in-one/teams","hooks_url":"https://api.github.com/repos/nus-ncl/services-in-one/hooks","issue_events_url":"https://api.github.com/repos/nus-ncl/services-in-one/issues/events{/number}","events_url":"https://api.github.com/repos/nus-ncl/services-in-one/events","assignees_url":"https://api.github.com/repos/nus-ncl/services-in-one/assignees{/user}","branches_url":"https://api.github.com/repos/nus-ncl/services-in-one/branches{/branch}","tags_url":"https://api.github.com/repos/nus-ncl/services-in-one/tags","blobs_url":"https://api.github.com/repos/nus-ncl/services-in-one/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nus-ncl/services-in-one/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nus-ncl/services-in-one/git/refs{/sha}","trees_url":"https://api.github.com/repos/nus-ncl/services-in-one/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nus-ncl/services-in-one/statuses/{sha}","languages_url":"https://api.github.com/repos/nus-ncl/services-in-one/languages","stargazers_url":"https://api.github.com/repos/nus-ncl/services-in-one/stargazers","contributors_url":"https://api.github.com/repos/nus-ncl/services-in-one/contributors","subscribers_url":"https://api.github.com/repos/nus-ncl/services-in-one/subscribers","subscription_url":"https://api.github.com/repos/nus-ncl/services-in-one/subscription","commits_url":"https://api.github.com/repos/nus-ncl/services-in-one/commits{/sha}","git_commits_url":"https://api.github.com/repos/nus-ncl/services-in-one/git/commits{/sha}","comments_url":"https://api.github.com/repos/nus-ncl/services-in-one/comments{/number}","issue_comment_url":"https://api.github.com/repos/nus-ncl/services-in-one/issues/comments{/number}","contents_url":"https://api.github.com/repos/nus-ncl/services-in-one/contents/{+path}","compare_url":"https://api.github.com/repos/nus-ncl/services-in-one/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nus-ncl/services-in-one/merges","archive_url":"https://api.github.com/repos/nus-ncl/services-in-one/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nus-ncl/services-in-one/downloads","issues_url":"https://api.github.com/repos/nus-ncl/services-in-one/issues{/number}","pulls_url":"https://api.github.com/repos/nus-ncl/services-in-one/pulls{/number}","milestones_url":"https://api.github.com/repos/nus-ncl/services-in-one/milestones{/number}","notifications_url":"https://api.github.com/repos/nus-ncl/services-in-one/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nus-ncl/services-in-one/labels{/name}","releases_url":"https://api.github.com/repos/nus-ncl/services-in-one/releases{/id}","deployments_url":"https://api.github.com/repos/nus-ncl/services-in-one/deployments","created_at":"2016-04-13T01:52:23Z","updated_at":"2016-06-23T02:22:35Z","pushed_at":"2016-08-25T04:59:22Z","git_url":"git://github.com/nus-ncl/services-in-one.git","ssh_url":"git@github.com:nus-ncl/services-in-one.git","clone_url":"https://github.com/nus-ncl/services-in-one.git","svn_url":"https://github.com/nus-ncl/services-in-one","homepage":null,"size":1775,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"nus-ncl:master","ref":"master","sha":"1fd431485ed63f1bce359907b1caa44126d0d4ec","user":{"login":"nus-ncl","id":15359055,"avatar_url":"https://avatars.githubusercontent.com/u/15359055?v=3","gravatar_id":"","url":"https://api.github.com/users/nus-ncl","html_url":"https://github.com/nus-ncl","followers_url":"https://api.github.com/users/nus-ncl/followers","following_url":"https://api.github.com/users/nus-ncl/following{/other_user}","gists_url":"https://api.github.com/users/nus-ncl/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-ncl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-ncl/subscriptions","organizations_url":"https://api.github.com/users/nus-ncl/orgs","repos_url":"https://api.github.com/users/nus-ncl/repos","events_url":"https://api.github.com/users/nus-ncl/events{/privacy}","received_events_url":"https://api.github.com/users/nus-ncl/received_events","type":"Organization","site_admin":false},"repo":{"id":56112257,"name":"services-in-one","full_name":"nus-ncl/services-in-one","owner":{"login":"nus-ncl","id":15359055,"avatar_url":"https://avatars.githubusercontent.com/u/15359055?v=3","gravatar_id":"","url":"https://api.github.com/users/nus-ncl","html_url":"https://github.com/nus-ncl","followers_url":"https://api.github.com/users/nus-ncl/followers","following_url":"https://api.github.com/users/nus-ncl/following{/other_user}","gists_url":"https://api.github.com/users/nus-ncl/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-ncl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-ncl/subscriptions","organizations_url":"https://api.github.com/users/nus-ncl/orgs","repos_url":"https://api.github.com/users/nus-ncl/repos","events_url":"https://api.github.com/users/nus-ncl/events{/privacy}","received_events_url":"https://api.github.com/users/nus-ncl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nus-ncl/services-in-one","description":"","fork":false,"url":"https://api.github.com/repos/nus-ncl/services-in-one","forks_url":"https://api.github.com/repos/nus-ncl/services-in-one/forks","keys_url":"https://api.github.com/repos/nus-ncl/services-in-one/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nus-ncl/services-in-one/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nus-ncl/services-in-one/teams","hooks_url":"https://api.github.com/repos/nus-ncl/services-in-one/hooks","issue_events_url":"https://api.github.com/repos/nus-ncl/services-in-one/issues/events{/number}","events_url":"https://api.github.com/repos/nus-ncl/services-in-one/events","assignees_url":"https://api.github.com/repos/nus-ncl/services-in-one/assignees{/user}","branches_url":"https://api.github.com/repos/nus-ncl/services-in-one/branches{/branch}","tags_url":"https://api.github.com/repos/nus-ncl/services-in-one/tags","blobs_url":"https://api.github.com/repos/nus-ncl/services-in-one/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nus-ncl/services-in-one/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nus-ncl/services-in-one/git/refs{/sha}","trees_url":"https://api.github.com/repos/nus-ncl/services-in-one/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nus-ncl/services-in-one/statuses/{sha}","languages_url":"https://api.github.com/repos/nus-ncl/services-in-one/languages","stargazers_url":"https://api.github.com/repos/nus-ncl/services-in-one/stargazers","contributors_url":"https://api.github.com/repos/nus-ncl/services-in-one/contributors","subscribers_url":"https://api.github.com/repos/nus-ncl/services-in-one/subscribers","subscription_url":"https://api.github.com/repos/nus-ncl/services-in-one/subscription","commits_url":"https://api.github.com/repos/nus-ncl/services-in-one/commits{/sha}","git_commits_url":"https://api.github.com/repos/nus-ncl/services-in-one/git/commits{/sha}","comments_url":"https://api.github.com/repos/nus-ncl/services-in-one/comments{/number}","issue_comment_url":"https://api.github.com/repos/nus-ncl/services-in-one/issues/comments{/number}","contents_url":"https://api.github.com/repos/nus-ncl/services-in-one/contents/{+path}","compare_url":"https://api.github.com/repos/nus-ncl/services-in-one/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nus-ncl/services-in-one/merges","archive_url":"https://api.github.com/repos/nus-ncl/services-in-one/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nus-ncl/services-in-one/downloads","issues_url":"https://api.github.com/repos/nus-ncl/services-in-one/issues{/number}","pulls_url":"https://api.github.com/repos/nus-ncl/services-in-one/pulls{/number}","milestones_url":"https://api.github.com/repos/nus-ncl/services-in-one/milestones{/number}","notifications_url":"https://api.github.com/repos/nus-ncl/services-in-one/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nus-ncl/services-in-one/labels{/name}","releases_url":"https://api.github.com/repos/nus-ncl/services-in-one/releases{/id}","deployments_url":"https://api.github.com/repos/nus-ncl/services-in-one/deployments","created_at":"2016-04-13T01:52:23Z","updated_at":"2016-06-23T02:22:35Z","pushed_at":"2016-08-25T04:59:22Z","git_url":"git://github.com/nus-ncl/services-in-one.git","ssh_url":"git@github.com:nus-ncl/services-in-one.git","clone_url":"https://github.com/nus-ncl/services-in-one.git","svn_url":"https://github.com/nus-ncl/services-in-one","homepage":null,"size":1775,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nus-ncl/services-in-one/pulls/115"},"html":{"href":"https://github.com/nus-ncl/services-in-one/pull/115"},"issue":{"href":"https://api.github.com/repos/nus-ncl/services-in-one/issues/115"},"comments":{"href":"https://api.github.com/repos/nus-ncl/services-in-one/issues/115/comments"},"review_comments":{"href":"https://api.github.com/repos/nus-ncl/services-in-one/pulls/115/comments"},"review_comment":{"href":"https://api.github.com/repos/nus-ncl/services-in-one/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nus-ncl/services-in-one/pulls/115/commits"},"statuses":{"href":"https://api.github.com/repos/nus-ncl/services-in-one/statuses/d243da45eaf005f6ca43cb20903ba3e7f9f8fc68"}}}}
{"actor":{"display_login":"ChrisZhong"}}