{"action":"created","comment":{"url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/comments/195041326","pull_request_review_id":128326876,"id":195041326,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTA0MTMyNg==","diff_hunk":"@@ -0,0 +1,110 @@\n+/*\n+ * Copyright 2018 Red Hat, Inc. and/or its affiliates.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *       http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.kie.server.controller.rest;\n+\n+import javax.ws.rs.*;\n+import javax.ws.rs.core.Context;\n+import javax.ws.rs.core.HttpHeaders;\n+import javax.ws.rs.core.MediaType;\n+import javax.ws.rs.core.Response;\n+\n+import org.kie.server.controller.api.KieServerControllerException;\n+import org.kie.server.controller.api.KieServerControllerIllegalArgumentException;\n+import org.kie.server.controller.api.model.runtime.ContainerList;\n+import org.kie.server.controller.api.model.runtime.ServerInstanceKeyList;\n+import org.kie.server.controller.impl.service.RuntimeManagementServiceImpl;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+import static org.kie.server.controller.rest.ControllerUtils.*;\n+\n+@Path(\"/controller/runtime\")\n+public class RestRuntimeManagementServiceImpl extends RuntimeManagementServiceImpl {\n+\n+    private static final Logger logger = LoggerFactory.getLogger(RestRuntimeManagementServiceImpl.class);\n+    private static final String REQUEST_FAILED_TOBE_PROCESSED = \"Request failed to be processed due to: \";\n+\n+    @GET\n+    @Path(\"servers/{id}\")","path":"kie-server-parent/kie-server-controller/kie-server-controller-rest/src/main/java/org/kie/server/controller/rest/RestRuntimeManagementServiceImpl.java","position":42,"original_position":42,"commit_id":"9aa028f6ae61aac336eba9ee34f045821cb89950","original_commit_id":"9aa028f6ae61aac336eba9ee34f045821cb89950","user":{"login":"cristianonicolai","id":570894,"node_id":"MDQ6VXNlcjU3MDg5NA==","avatar_url":"https://avatars1.githubusercontent.com/u/570894?v=4","gravatar_id":"","url":"https://api.github.com/users/cristianonicolai","html_url":"https://github.com/cristianonicolai","followers_url":"https://api.github.com/users/cristianonicolai/followers","following_url":"https://api.github.com/users/cristianonicolai/following{/other_user}","gists_url":"https://api.github.com/users/cristianonicolai/gists{/gist_id}","starred_url":"https://api.github.com/users/cristianonicolai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristianonicolai/subscriptions","organizations_url":"https://api.github.com/users/cristianonicolai/orgs","repos_url":"https://api.github.com/users/cristianonicolai/repos","events_url":"https://api.github.com/users/cristianonicolai/events{/privacy}","received_events_url":"https://api.github.com/users/cristianonicolai/received_events","type":"User","site_admin":false},"body":"Sure.","created_at":"2018-06-13T11:05:01Z","updated_at":"2018-06-13T11:05:01Z","html_url":"https://github.com/kiegroup/droolsjbpm-integration/pull/1493#discussion_r195041326","pull_request_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1493","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/comments/195041326"},"html":{"href":"https://github.com/kiegroup/droolsjbpm-integration/pull/1493#discussion_r195041326"},"pull_request":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1493"}},"in_reply_to_id":194985145},"pull_request":{"url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1493","id":194470366,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0NDcwMzY2","html_url":"https://github.com/kiegroup/droolsjbpm-integration/pull/1493","diff_url":"https://github.com/kiegroup/droolsjbpm-integration/pull/1493.diff","patch_url":"https://github.com/kiegroup/droolsjbpm-integration/pull/1493.patch","issue_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/1493","number":1493,"state":"open","locked":false,"title":"JBPM-7360 - Extend Kie Server Controller REST endpoints for RuntimeMa…","user":{"login":"cristianonicolai","id":570894,"node_id":"MDQ6VXNlcjU3MDg5NA==","avatar_url":"https://avatars1.githubusercontent.com/u/570894?v=4","gravatar_id":"","url":"https://api.github.com/users/cristianonicolai","html_url":"https://github.com/cristianonicolai","followers_url":"https://api.github.com/users/cristianonicolai/followers","following_url":"https://api.github.com/users/cristianonicolai/following{/other_user}","gists_url":"https://api.github.com/users/cristianonicolai/gists{/gist_id}","starred_url":"https://api.github.com/users/cristianonicolai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristianonicolai/subscriptions","organizations_url":"https://api.github.com/users/cristianonicolai/orgs","repos_url":"https://api.github.com/users/cristianonicolai/repos","events_url":"https://api.github.com/users/cristianonicolai/events{/privacy}","received_events_url":"https://api.github.com/users/cristianonicolai/received_events","type":"User","site_admin":false},"body":"…nagementService","created_at":"2018-06-13T04:51:50Z","updated_at":"2018-06-13T11:05:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71d9be045df088b0cf725f428e0c2013a8be5a99","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1493/commits","review_comments_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1493/comments","review_comment_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/1493/comments","statuses_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/statuses/9aa028f6ae61aac336eba9ee34f045821cb89950","head":{"label":"cristianonicolai:JBPM-7360","ref":"JBPM-7360","sha":"9aa028f6ae61aac336eba9ee34f045821cb89950","user":{"login":"cristianonicolai","id":570894,"node_id":"MDQ6VXNlcjU3MDg5NA==","avatar_url":"https://avatars1.githubusercontent.com/u/570894?v=4","gravatar_id":"","url":"https://api.github.com/users/cristianonicolai","html_url":"https://github.com/cristianonicolai","followers_url":"https://api.github.com/users/cristianonicolai/followers","following_url":"https://api.github.com/users/cristianonicolai/following{/other_user}","gists_url":"https://api.github.com/users/cristianonicolai/gists{/gist_id}","starred_url":"https://api.github.com/users/cristianonicolai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristianonicolai/subscriptions","organizations_url":"https://api.github.com/users/cristianonicolai/orgs","repos_url":"https://api.github.com/users/cristianonicolai/repos","events_url":"https://api.github.com/users/cristianonicolai/events{/privacy}","received_events_url":"https://api.github.com/users/cristianonicolai/received_events","type":"User","site_admin":false},"repo":{"id":52335256,"node_id":"MDEwOlJlcG9zaXRvcnk1MjMzNTI1Ng==","name":"droolsjbpm-integration","full_name":"cristianonicolai/droolsjbpm-integration","owner":{"login":"cristianonicolai","id":570894,"node_id":"MDQ6VXNlcjU3MDg5NA==","avatar_url":"https://avatars1.githubusercontent.com/u/570894?v=4","gravatar_id":"","url":"https://api.github.com/users/cristianonicolai","html_url":"https://github.com/cristianonicolai","followers_url":"https://api.github.com/users/cristianonicolai/followers","following_url":"https://api.github.com/users/cristianonicolai/following{/other_user}","gists_url":"https://api.github.com/users/cristianonicolai/gists{/gist_id}","starred_url":"https://api.github.com/users/cristianonicolai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristianonicolai/subscriptions","organizations_url":"https://api.github.com/users/cristianonicolai/orgs","repos_url":"https://api.github.com/users/cristianonicolai/repos","events_url":"https://api.github.com/users/cristianonicolai/events{/privacy}","received_events_url":"https://api.github.com/users/cristianonicolai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cristianonicolai/droolsjbpm-integration","description":"Drools and jBPM integration with seam, spring, camel, ...","fork":true,"url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration","forks_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/forks","keys_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/teams","hooks_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/hooks","issue_events_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/issues/events{/number}","events_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/events","assignees_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/assignees{/user}","branches_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/branches{/branch}","tags_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/tags","blobs_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/git/refs{/sha}","trees_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/statuses/{sha}","languages_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/languages","stargazers_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/stargazers","contributors_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/contributors","subscribers_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/subscribers","subscription_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/subscription","commits_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/commits{/sha}","git_commits_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/git/commits{/sha}","comments_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/comments{/number}","issue_comment_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/issues/comments{/number}","contents_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/contents/{+path}","compare_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/merges","archive_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/downloads","issues_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/issues{/number}","pulls_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/pulls{/number}","milestones_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/milestones{/number}","notifications_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/labels{/name}","releases_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/releases{/id}","deployments_url":"https://api.github.com/repos/cristianonicolai/droolsjbpm-integration/deployments","created_at":"2016-02-23T06:10:58Z","updated_at":"2016-02-23T06:11:03Z","pushed_at":"2018-06-13T04:50:44Z","git_url":"git://github.com/cristianonicolai/droolsjbpm-integration.git","ssh_url":"git@github.com:cristianonicolai/droolsjbpm-integration.git","clone_url":"https://github.com/cristianonicolai/droolsjbpm-integration.git","svn_url":"https://github.com/cristianonicolai/droolsjbpm-integration","homepage":"","size":45131,"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":"master"}},"base":{"label":"kiegroup:master","ref":"master","sha":"a1f1f7605bde99f51e81d023ab7d24eb14ada581","user":{"login":"kiegroup","id":517980,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxNzk4MA==","avatar_url":"https://avatars3.githubusercontent.com/u/517980?v=4","gravatar_id":"","url":"https://api.github.com/users/kiegroup","html_url":"https://github.com/kiegroup","followers_url":"https://api.github.com/users/kiegroup/followers","following_url":"https://api.github.com/users/kiegroup/following{/other_user}","gists_url":"https://api.github.com/users/kiegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/kiegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiegroup/subscriptions","organizations_url":"https://api.github.com/users/kiegroup/orgs","repos_url":"https://api.github.com/users/kiegroup/repos","events_url":"https://api.github.com/users/kiegroup/events{/privacy}","received_events_url":"https://api.github.com/users/kiegroup/received_events","type":"Organization","site_admin":false},"repo":{"id":1365306,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY1MzA2","name":"droolsjbpm-integration","full_name":"kiegroup/droolsjbpm-integration","owner":{"login":"kiegroup","id":517980,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxNzk4MA==","avatar_url":"https://avatars3.githubusercontent.com/u/517980?v=4","gravatar_id":"","url":"https://api.github.com/users/kiegroup","html_url":"https://github.com/kiegroup","followers_url":"https://api.github.com/users/kiegroup/followers","following_url":"https://api.github.com/users/kiegroup/following{/other_user}","gists_url":"https://api.github.com/users/kiegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/kiegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiegroup/subscriptions","organizations_url":"https://api.github.com/users/kiegroup/orgs","repos_url":"https://api.github.com/users/kiegroup/repos","events_url":"https://api.github.com/users/kiegroup/events{/privacy}","received_events_url":"https://api.github.com/users/kiegroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kiegroup/droolsjbpm-integration","description":"Drools and jBPM integration with seam, spring, camel, ...","fork":false,"url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration","forks_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/forks","keys_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/teams","hooks_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/hooks","issue_events_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/events{/number}","events_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/events","assignees_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/assignees{/user}","branches_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/branches{/branch}","tags_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/tags","blobs_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/git/refs{/sha}","trees_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/statuses/{sha}","languages_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/languages","stargazers_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/stargazers","contributors_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/contributors","subscribers_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/subscribers","subscription_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/subscription","commits_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/commits{/sha}","git_commits_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/git/commits{/sha}","comments_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/comments{/number}","issue_comment_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/comments{/number}","contents_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/contents/{+path}","compare_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/merges","archive_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/downloads","issues_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues{/number}","pulls_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls{/number}","milestones_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/milestones{/number}","notifications_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/labels{/name}","releases_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/releases{/id}","deployments_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/deployments","created_at":"2011-02-14T14:02:11Z","updated_at":"2018-06-13T10:33:11Z","pushed_at":"2018-06-13T10:36:05Z","git_url":"git://github.com/kiegroup/droolsjbpm-integration.git","ssh_url":"git@github.com:kiegroup/droolsjbpm-integration.git","clone_url":"https://github.com/kiegroup/droolsjbpm-integration.git","svn_url":"https://github.com/kiegroup/droolsjbpm-integration","homepage":"","size":49224,"stargazers_count":150,"watchers_count":150,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":355,"mirror_url":null,"archived":false,"open_issues_count":10,"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":355,"open_issues":10,"watchers":150,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1493"},"html":{"href":"https://github.com/kiegroup/droolsjbpm-integration/pull/1493"},"issue":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/1493"},"comments":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/1493/comments"},"review_comments":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1493/comments"},"review_comment":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1493/commits"},"statuses":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/statuses/9aa028f6ae61aac336eba9ee34f045821cb89950"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"cristianonicolai"}}