{"action":"created","comment":{"url":"https://api.github.com/repos/influunt/influunt/pulls/comments/84742582","pull_request_review_id":5500957,"id":84742582,"diff_hunk":"@@ -0,0 +1,42 @@\n+package simulador.akka;\n+\n+import akka.actor.ActorRef;\n+import akka.actor.ActorSystem;\n+import akka.actor.Props;\n+import com.google.inject.Inject;\n+import com.google.inject.Singleton;\n+import models.simulador.parametros.ParametroSimulacao;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+\n+/**\n+ * Created by rodrigosol on 10/4/16.\n+ */\n+@Singleton\n+public class GerenciadorDeSimulacoes {\n+\n+    private final ActorSystem system;\n+\n+    private ActorRef servidor;\n+\n+    private List<ActorRef> simuladores = new ArrayList<>();\n+\n+    @Inject\n+    public GerenciadorDeSimulacoes(ActorSystem system) {\n+        this.system = system;\n+    }\n+\n+    public void finish() {\n+        system.terminate();\n+    }\n+\n+    public void iniciarSimulacao(ParametroSimulacao params) {\n+        ActorRef simulador = system.actorOf(Props.create(SimuladorActor.class,\n+                \"mosquitto.rarolabs.com.br\",\n+                \"1883\",","path":"influunt-api/modules/influunt-simulador/app/simulador/akka/GerenciadorDeSimulacoes.java","position":37,"original_position":37,"commit_id":"9e999333a7d32bdff0ca7a7d18f6b2f32fab82d5","original_commit_id":"db1a07cc511b71a4e3cb6445b7c70f70e5f20eca","user":{"login":"rodrigosol","id":99245,"avatar_url":"https://avatars.githubusercontent.com/u/99245?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigosol","html_url":"https://github.com/rodrigosol","followers_url":"https://api.github.com/users/rodrigosol/followers","following_url":"https://api.github.com/users/rodrigosol/following{/other_user}","gists_url":"https://api.github.com/users/rodrigosol/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigosol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigosol/subscriptions","organizations_url":"https://api.github.com/users/rodrigosol/orgs","repos_url":"https://api.github.com/users/rodrigosol/repos","events_url":"https://api.github.com/users/rodrigosol/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigosol/received_events","type":"User","site_admin":false},"body":"@pauloFernandes esta fazendo isso","created_at":"2016-10-24T17:45:25Z","updated_at":"2016-10-24T17:45:25Z","html_url":"https://github.com/influunt/influunt/pull/1223#discussion_r84742582","pull_request_url":"https://api.github.com/repos/influunt/influunt/pulls/1223","_links":{"self":{"href":"https://api.github.com/repos/influunt/influunt/pulls/comments/84742582"},"html":{"href":"https://github.com/influunt/influunt/pull/1223#discussion_r84742582"},"pull_request":{"href":"https://api.github.com/repos/influunt/influunt/pulls/1223"}}},"pull_request":{"url":"https://api.github.com/repos/influunt/influunt/pulls/1223","id":90632260,"html_url":"https://github.com/influunt/influunt/pull/1223","diff_url":"https://github.com/influunt/influunt/pull/1223.diff","patch_url":"https://github.com/influunt/influunt/pull/1223.patch","issue_url":"https://api.github.com/repos/influunt/influunt/issues/1223","number":1223,"state":"open","locked":false,"title":"996 simulador","user":{"login":"rodrigosol","id":99245,"avatar_url":"https://avatars.githubusercontent.com/u/99245?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigosol","html_url":"https://github.com/rodrigosol","followers_url":"https://api.github.com/users/rodrigosol/followers","following_url":"https://api.github.com/users/rodrigosol/following{/other_user}","gists_url":"https://api.github.com/users/rodrigosol/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigosol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigosol/subscriptions","organizations_url":"https://api.github.com/users/rodrigosol/orgs","repos_url":"https://api.github.com/users/rodrigosol/repos","events_url":"https://api.github.com/users/rodrigosol/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigosol/received_events","type":"User","site_admin":false},"body":"É código demais!","created_at":"2016-10-24T15:11:06Z","updated_at":"2016-10-24T17:45:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e2af7a1268c50a297de9cfd35ceb2da23a0ab5e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/influunt/influunt/pulls/1223/commits","review_comments_url":"https://api.github.com/repos/influunt/influunt/pulls/1223/comments","review_comment_url":"https://api.github.com/repos/influunt/influunt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/influunt/influunt/issues/1223/comments","statuses_url":"https://api.github.com/repos/influunt/influunt/statuses/9e999333a7d32bdff0ca7a7d18f6b2f32fab82d5","head":{"label":"influunt:996-simulador","ref":"996-simulador","sha":"9e999333a7d32bdff0ca7a7d18f6b2f32fab82d5","user":{"login":"influunt","id":19677350,"avatar_url":"https://avatars.githubusercontent.com/u/19677350?v=3","gravatar_id":"","url":"https://api.github.com/users/influunt","html_url":"https://github.com/influunt","followers_url":"https://api.github.com/users/influunt/followers","following_url":"https://api.github.com/users/influunt/following{/other_user}","gists_url":"https://api.github.com/users/influunt/gists{/gist_id}","starred_url":"https://api.github.com/users/influunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influunt/subscriptions","organizations_url":"https://api.github.com/users/influunt/orgs","repos_url":"https://api.github.com/users/influunt/repos","events_url":"https://api.github.com/users/influunt/events{/privacy}","received_events_url":"https://api.github.com/users/influunt/received_events","type":"Organization","site_admin":false},"repo":{"id":60134030,"name":"influunt","full_name":"influunt/influunt","owner":{"login":"influunt","id":19677350,"avatar_url":"https://avatars.githubusercontent.com/u/19677350?v=3","gravatar_id":"","url":"https://api.github.com/users/influunt","html_url":"https://github.com/influunt","followers_url":"https://api.github.com/users/influunt/followers","following_url":"https://api.github.com/users/influunt/following{/other_user}","gists_url":"https://api.github.com/users/influunt/gists{/gist_id}","starred_url":"https://api.github.com/users/influunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influunt/subscriptions","organizations_url":"https://api.github.com/users/influunt/orgs","repos_url":"https://api.github.com/users/influunt/repos","events_url":"https://api.github.com/users/influunt/events{/privacy}","received_events_url":"https://api.github.com/users/influunt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influunt/influunt","description":null,"fork":false,"url":"https://api.github.com/repos/influunt/influunt","forks_url":"https://api.github.com/repos/influunt/influunt/forks","keys_url":"https://api.github.com/repos/influunt/influunt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influunt/influunt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influunt/influunt/teams","hooks_url":"https://api.github.com/repos/influunt/influunt/hooks","issue_events_url":"https://api.github.com/repos/influunt/influunt/issues/events{/number}","events_url":"https://api.github.com/repos/influunt/influunt/events","assignees_url":"https://api.github.com/repos/influunt/influunt/assignees{/user}","branches_url":"https://api.github.com/repos/influunt/influunt/branches{/branch}","tags_url":"https://api.github.com/repos/influunt/influunt/tags","blobs_url":"https://api.github.com/repos/influunt/influunt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influunt/influunt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influunt/influunt/git/refs{/sha}","trees_url":"https://api.github.com/repos/influunt/influunt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influunt/influunt/statuses/{sha}","languages_url":"https://api.github.com/repos/influunt/influunt/languages","stargazers_url":"https://api.github.com/repos/influunt/influunt/stargazers","contributors_url":"https://api.github.com/repos/influunt/influunt/contributors","subscribers_url":"https://api.github.com/repos/influunt/influunt/subscribers","subscription_url":"https://api.github.com/repos/influunt/influunt/subscription","commits_url":"https://api.github.com/repos/influunt/influunt/commits{/sha}","git_commits_url":"https://api.github.com/repos/influunt/influunt/git/commits{/sha}","comments_url":"https://api.github.com/repos/influunt/influunt/comments{/number}","issue_comment_url":"https://api.github.com/repos/influunt/influunt/issues/comments{/number}","contents_url":"https://api.github.com/repos/influunt/influunt/contents/{+path}","compare_url":"https://api.github.com/repos/influunt/influunt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influunt/influunt/merges","archive_url":"https://api.github.com/repos/influunt/influunt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influunt/influunt/downloads","issues_url":"https://api.github.com/repos/influunt/influunt/issues{/number}","pulls_url":"https://api.github.com/repos/influunt/influunt/pulls{/number}","milestones_url":"https://api.github.com/repos/influunt/influunt/milestones{/number}","notifications_url":"https://api.github.com/repos/influunt/influunt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influunt/influunt/labels{/name}","releases_url":"https://api.github.com/repos/influunt/influunt/releases{/id}","deployments_url":"https://api.github.com/repos/influunt/influunt/deployments","created_at":"2016-06-01T00:55:14Z","updated_at":"2016-10-24T11:58:12Z","pushed_at":"2016-10-24T17:41:34Z","git_url":"git://github.com/influunt/influunt.git","ssh_url":"git@github.com:influunt/influunt.git","clone_url":"https://github.com/influunt/influunt.git","svn_url":"https://github.com/influunt/influunt","homepage":null,"size":79841,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":82,"forks":0,"open_issues":82,"watchers":0,"default_branch":"staging"}},"base":{"label":"influunt:staging","ref":"staging","sha":"1bb81d43dd86e152673f1255c0a4852a2d24670c","user":{"login":"influunt","id":19677350,"avatar_url":"https://avatars.githubusercontent.com/u/19677350?v=3","gravatar_id":"","url":"https://api.github.com/users/influunt","html_url":"https://github.com/influunt","followers_url":"https://api.github.com/users/influunt/followers","following_url":"https://api.github.com/users/influunt/following{/other_user}","gists_url":"https://api.github.com/users/influunt/gists{/gist_id}","starred_url":"https://api.github.com/users/influunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influunt/subscriptions","organizations_url":"https://api.github.com/users/influunt/orgs","repos_url":"https://api.github.com/users/influunt/repos","events_url":"https://api.github.com/users/influunt/events{/privacy}","received_events_url":"https://api.github.com/users/influunt/received_events","type":"Organization","site_admin":false},"repo":{"id":60134030,"name":"influunt","full_name":"influunt/influunt","owner":{"login":"influunt","id":19677350,"avatar_url":"https://avatars.githubusercontent.com/u/19677350?v=3","gravatar_id":"","url":"https://api.github.com/users/influunt","html_url":"https://github.com/influunt","followers_url":"https://api.github.com/users/influunt/followers","following_url":"https://api.github.com/users/influunt/following{/other_user}","gists_url":"https://api.github.com/users/influunt/gists{/gist_id}","starred_url":"https://api.github.com/users/influunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influunt/subscriptions","organizations_url":"https://api.github.com/users/influunt/orgs","repos_url":"https://api.github.com/users/influunt/repos","events_url":"https://api.github.com/users/influunt/events{/privacy}","received_events_url":"https://api.github.com/users/influunt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influunt/influunt","description":null,"fork":false,"url":"https://api.github.com/repos/influunt/influunt","forks_url":"https://api.github.com/repos/influunt/influunt/forks","keys_url":"https://api.github.com/repos/influunt/influunt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influunt/influunt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influunt/influunt/teams","hooks_url":"https://api.github.com/repos/influunt/influunt/hooks","issue_events_url":"https://api.github.com/repos/influunt/influunt/issues/events{/number}","events_url":"https://api.github.com/repos/influunt/influunt/events","assignees_url":"https://api.github.com/repos/influunt/influunt/assignees{/user}","branches_url":"https://api.github.com/repos/influunt/influunt/branches{/branch}","tags_url":"https://api.github.com/repos/influunt/influunt/tags","blobs_url":"https://api.github.com/repos/influunt/influunt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influunt/influunt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influunt/influunt/git/refs{/sha}","trees_url":"https://api.github.com/repos/influunt/influunt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influunt/influunt/statuses/{sha}","languages_url":"https://api.github.com/repos/influunt/influunt/languages","stargazers_url":"https://api.github.com/repos/influunt/influunt/stargazers","contributors_url":"https://api.github.com/repos/influunt/influunt/contributors","subscribers_url":"https://api.github.com/repos/influunt/influunt/subscribers","subscription_url":"https://api.github.com/repos/influunt/influunt/subscription","commits_url":"https://api.github.com/repos/influunt/influunt/commits{/sha}","git_commits_url":"https://api.github.com/repos/influunt/influunt/git/commits{/sha}","comments_url":"https://api.github.com/repos/influunt/influunt/comments{/number}","issue_comment_url":"https://api.github.com/repos/influunt/influunt/issues/comments{/number}","contents_url":"https://api.github.com/repos/influunt/influunt/contents/{+path}","compare_url":"https://api.github.com/repos/influunt/influunt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influunt/influunt/merges","archive_url":"https://api.github.com/repos/influunt/influunt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influunt/influunt/downloads","issues_url":"https://api.github.com/repos/influunt/influunt/issues{/number}","pulls_url":"https://api.github.com/repos/influunt/influunt/pulls{/number}","milestones_url":"https://api.github.com/repos/influunt/influunt/milestones{/number}","notifications_url":"https://api.github.com/repos/influunt/influunt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influunt/influunt/labels{/name}","releases_url":"https://api.github.com/repos/influunt/influunt/releases{/id}","deployments_url":"https://api.github.com/repos/influunt/influunt/deployments","created_at":"2016-06-01T00:55:14Z","updated_at":"2016-10-24T11:58:12Z","pushed_at":"2016-10-24T17:41:34Z","git_url":"git://github.com/influunt/influunt.git","ssh_url":"git@github.com:influunt/influunt.git","clone_url":"https://github.com/influunt/influunt.git","svn_url":"https://github.com/influunt/influunt","homepage":null,"size":79841,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":82,"forks":0,"open_issues":82,"watchers":0,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/influunt/influunt/pulls/1223"},"html":{"href":"https://github.com/influunt/influunt/pull/1223"},"issue":{"href":"https://api.github.com/repos/influunt/influunt/issues/1223"},"comments":{"href":"https://api.github.com/repos/influunt/influunt/issues/1223/comments"},"review_comments":{"href":"https://api.github.com/repos/influunt/influunt/pulls/1223/comments"},"review_comment":{"href":"https://api.github.com/repos/influunt/influunt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/influunt/influunt/pulls/1223/commits"},"statuses":{"href":"https://api.github.com/repos/influunt/influunt/statuses/9e999333a7d32bdff0ca7a7d18f6b2f32fab82d5"}}}}
{"actor":{"display_login":"rodrigosol"}}