{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-reef/pulls/comments/32298041","id":32298041,"diff_hunk":"@@ -0,0 +1,59 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with the License.  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,\n+ * software distributed under the License is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ * KIND, either express or implied.  See the License for the\n+ * specific language governing permissions and limitations\n+ * under the License.\n+ */\n+package org.apache.reef.vortex;\n+\n+import org.apache.reef.driver.evaluator.AllocatedEvaluator;\n+import org.apache.reef.driver.evaluator.EvaluatorRequest;\n+import org.apache.reef.driver.evaluator.EvaluatorRequestor;\n+import org.apache.reef.tang.annotations.Unit;\n+import org.apache.reef.wake.EventHandler;\n+import org.apache.reef.wake.time.event.StartTime;\n+\n+import javax.inject.Inject;\n+import java.util.logging.Level;\n+import java.util.logging.Logger;\n+\n+@Unit\n+public final class VortexDriver {\n+  private static final Logger LOG = Logger.getLogger(VortexDriver.class.getName());\n+  private final EvaluatorRequestor requestor;\n+\n+  @Inject\n+  public VortexDriver(final EvaluatorRequestor requestor) {\n+    this.requestor = requestor;\n+  }\n+\n+  public final class StartHandler implements EventHandler<StartTime> {\n+    @Override\n+    public void onNext(final StartTime startTime) {\n+      requestor.submit(EvaluatorRequest.newBuilder()\n+          .setNumber(1)\n+          .setMemory(64)\n+          .setNumberOfCores(1)\n+          .build());\n+    }\n+  }\n+\n+  public final class EvaluatorAllocatedHandler implements EventHandler<AllocatedEvaluator> {\n+    @Override\n+    public void onNext(final AllocatedEvaluator allocatedEvaluator) {\n+      LOG.log(Level.INFO, \"Evaluator Allocated: {0}\", allocatedEvaluator);","path":"lang/java/reef-applications/reef-vortex/src/main/java/org/apache/reef/vortex/VortexDriver.java","position":56,"original_position":56,"commit_id":"6bc6d140b2f82512780262046a125c4b48fa5736","original_commit_id":"8cd0add885e40173c56f24d3fca5a3a9235a94de","user":{"login":"johnyangk","id":4114572,"avatar_url":"https://avatars.githubusercontent.com/u/4114572?v=3","gravatar_id":"","url":"https://api.github.com/users/johnyangk","html_url":"https://github.com/johnyangk","followers_url":"https://api.github.com/users/johnyangk/followers","following_url":"https://api.github.com/users/johnyangk/following{/other_user}","gists_url":"https://api.github.com/users/johnyangk/gists{/gist_id}","starred_url":"https://api.github.com/users/johnyangk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnyangk/subscriptions","organizations_url":"https://api.github.com/users/johnyangk/orgs","repos_url":"https://api.github.com/users/johnyangk/repos","events_url":"https://api.github.com/users/johnyangk/events{/privacy}","received_events_url":"https://api.github.com/users/johnyangk/received_events","type":"User","site_admin":false},"body":"Fixed. Thanks for the catch!","created_at":"2015-06-12T08:26:58Z","updated_at":"2015-06-12T08:26:58Z","html_url":"https://github.com/apache/incubator-reef/pull/214#discussion_r32298041","pull_request_url":"https://api.github.com/repos/apache/incubator-reef/pulls/214","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/comments/32298041"},"html":{"href":"https://github.com/apache/incubator-reef/pull/214#discussion_r32298041"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/214"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-reef/pulls/214","id":37537377,"html_url":"https://github.com/apache/incubator-reef/pull/214","diff_url":"https://github.com/apache/incubator-reef/pull/214.diff","patch_url":"https://github.com/apache/incubator-reef/pull/214.patch","issue_url":"https://api.github.com/repos/apache/incubator-reef/issues/214","number":214,"state":"open","locked":false,"title":"[REEF-366]: Initial project setup for Vortex","user":{"login":"johnyangk","id":4114572,"avatar_url":"https://avatars.githubusercontent.com/u/4114572?v=3","gravatar_id":"","url":"https://api.github.com/users/johnyangk","html_url":"https://github.com/johnyangk","followers_url":"https://api.github.com/users/johnyangk/followers","following_url":"https://api.github.com/users/johnyangk/following{/other_user}","gists_url":"https://api.github.com/users/johnyangk/gists{/gist_id}","starred_url":"https://api.github.com/users/johnyangk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnyangk/subscriptions","organizations_url":"https://api.github.com/users/johnyangk/orgs","repos_url":"https://api.github.com/users/johnyangk/repos","events_url":"https://api.github.com/users/johnyangk/events{/privacy}","received_events_url":"https://api.github.com/users/johnyangk/received_events","type":"User","site_admin":false},"body":"This addressed the issue by:\r\n  * Creating a directory 'lang/java/reef-applications/vortex'\r\n  * Creating necessary pom files\r\n  * Adding 'reef-applications' submodule to the pom file at the root directory\r\n\r\nJIRA: [REEF-366](https://issues.apache.org/jira/browse/REEF-366)\r\n","created_at":"2015-06-12T07:13:08Z","updated_at":"2015-06-12T08:26:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7435305f01f29845d5f6dd72aec702d012a1d07c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-reef/pulls/214/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-reef/pulls/214/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-reef/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-reef/issues/214/comments","statuses_url":"https://api.github.com/repos/apache/incubator-reef/statuses/6bc6d140b2f82512780262046a125c4b48fa5736","head":{"label":"johnyangk:REEF-366","ref":"REEF-366","sha":"6bc6d140b2f82512780262046a125c4b48fa5736","user":{"login":"johnyangk","id":4114572,"avatar_url":"https://avatars.githubusercontent.com/u/4114572?v=3","gravatar_id":"","url":"https://api.github.com/users/johnyangk","html_url":"https://github.com/johnyangk","followers_url":"https://api.github.com/users/johnyangk/followers","following_url":"https://api.github.com/users/johnyangk/following{/other_user}","gists_url":"https://api.github.com/users/johnyangk/gists{/gist_id}","starred_url":"https://api.github.com/users/johnyangk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnyangk/subscriptions","organizations_url":"https://api.github.com/users/johnyangk/orgs","repos_url":"https://api.github.com/users/johnyangk/repos","events_url":"https://api.github.com/users/johnyangk/events{/privacy}","received_events_url":"https://api.github.com/users/johnyangk/received_events","type":"User","site_admin":false},"repo":{"id":25674390,"name":"incubator-reef","full_name":"johnyangk/incubator-reef","owner":{"login":"johnyangk","id":4114572,"avatar_url":"https://avatars.githubusercontent.com/u/4114572?v=3","gravatar_id":"","url":"https://api.github.com/users/johnyangk","html_url":"https://github.com/johnyangk","followers_url":"https://api.github.com/users/johnyangk/followers","following_url":"https://api.github.com/users/johnyangk/following{/other_user}","gists_url":"https://api.github.com/users/johnyangk/gists{/gist_id}","starred_url":"https://api.github.com/users/johnyangk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnyangk/subscriptions","organizations_url":"https://api.github.com/users/johnyangk/orgs","repos_url":"https://api.github.com/users/johnyangk/repos","events_url":"https://api.github.com/users/johnyangk/events{/privacy}","received_events_url":"https://api.github.com/users/johnyangk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johnyangk/incubator-reef","description":"Mirror of Apache REEF (Incubating)","fork":true,"url":"https://api.github.com/repos/johnyangk/incubator-reef","forks_url":"https://api.github.com/repos/johnyangk/incubator-reef/forks","keys_url":"https://api.github.com/repos/johnyangk/incubator-reef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johnyangk/incubator-reef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johnyangk/incubator-reef/teams","hooks_url":"https://api.github.com/repos/johnyangk/incubator-reef/hooks","issue_events_url":"https://api.github.com/repos/johnyangk/incubator-reef/issues/events{/number}","events_url":"https://api.github.com/repos/johnyangk/incubator-reef/events","assignees_url":"https://api.github.com/repos/johnyangk/incubator-reef/assignees{/user}","branches_url":"https://api.github.com/repos/johnyangk/incubator-reef/branches{/branch}","tags_url":"https://api.github.com/repos/johnyangk/incubator-reef/tags","blobs_url":"https://api.github.com/repos/johnyangk/incubator-reef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johnyangk/incubator-reef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johnyangk/incubator-reef/git/refs{/sha}","trees_url":"https://api.github.com/repos/johnyangk/incubator-reef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johnyangk/incubator-reef/statuses/{sha}","languages_url":"https://api.github.com/repos/johnyangk/incubator-reef/languages","stargazers_url":"https://api.github.com/repos/johnyangk/incubator-reef/stargazers","contributors_url":"https://api.github.com/repos/johnyangk/incubator-reef/contributors","subscribers_url":"https://api.github.com/repos/johnyangk/incubator-reef/subscribers","subscription_url":"https://api.github.com/repos/johnyangk/incubator-reef/subscription","commits_url":"https://api.github.com/repos/johnyangk/incubator-reef/commits{/sha}","git_commits_url":"https://api.github.com/repos/johnyangk/incubator-reef/git/commits{/sha}","comments_url":"https://api.github.com/repos/johnyangk/incubator-reef/comments{/number}","issue_comment_url":"https://api.github.com/repos/johnyangk/incubator-reef/issues/comments{/number}","contents_url":"https://api.github.com/repos/johnyangk/incubator-reef/contents/{+path}","compare_url":"https://api.github.com/repos/johnyangk/incubator-reef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johnyangk/incubator-reef/merges","archive_url":"https://api.github.com/repos/johnyangk/incubator-reef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johnyangk/incubator-reef/downloads","issues_url":"https://api.github.com/repos/johnyangk/incubator-reef/issues{/number}","pulls_url":"https://api.github.com/repos/johnyangk/incubator-reef/pulls{/number}","milestones_url":"https://api.github.com/repos/johnyangk/incubator-reef/milestones{/number}","notifications_url":"https://api.github.com/repos/johnyangk/incubator-reef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johnyangk/incubator-reef/labels{/name}","releases_url":"https://api.github.com/repos/johnyangk/incubator-reef/releases{/id}","created_at":"2014-10-24T06:15:53Z","updated_at":"2015-04-30T03:14:37Z","pushed_at":"2015-06-12T08:25:45Z","git_url":"git://github.com/johnyangk/incubator-reef.git","ssh_url":"git@github.com:johnyangk/incubator-reef.git","clone_url":"https://github.com/johnyangk/incubator-reef.git","svn_url":"https://github.com/johnyangk/incubator-reef","homepage":null,"size":28538,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"apache:master","ref":"master","sha":"7b99be95076ae0e4104e2fd18d4739ffb7069db1","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":25623941,"name":"incubator-reef","full_name":"apache/incubator-reef","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-reef","description":"Mirror of Apache REEF (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-reef","forks_url":"https://api.github.com/repos/apache/incubator-reef/forks","keys_url":"https://api.github.com/repos/apache/incubator-reef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-reef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-reef/teams","hooks_url":"https://api.github.com/repos/apache/incubator-reef/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-reef/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-reef/events","assignees_url":"https://api.github.com/repos/apache/incubator-reef/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-reef/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-reef/tags","blobs_url":"https://api.github.com/repos/apache/incubator-reef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-reef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-reef/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-reef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-reef/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-reef/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-reef/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-reef/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-reef/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-reef/subscription","commits_url":"https://api.github.com/repos/apache/incubator-reef/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-reef/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-reef/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-reef/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-reef/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-reef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-reef/merges","archive_url":"https://api.github.com/repos/apache/incubator-reef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-reef/downloads","issues_url":"https://api.github.com/repos/apache/incubator-reef/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-reef/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-reef/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-reef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-reef/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-reef/releases{/id}","created_at":"2014-10-23T07:00:10Z","updated_at":"2015-06-05T18:15:34Z","pushed_at":"2015-06-12T08:25:45Z","git_url":"git://github.com/apache/incubator-reef.git","ssh_url":"git@github.com:apache/incubator-reef.git","clone_url":"https://github.com/apache/incubator-reef.git","svn_url":"https://github.com/apache/incubator-reef","homepage":null,"size":40318,"stargazers_count":20,"watchers_count":20,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":23,"mirror_url":"git://git.apache.org/incubator-reef.git","open_issues_count":5,"forks":23,"open_issues":5,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/214"},"html":{"href":"https://github.com/apache/incubator-reef/pull/214"},"issue":{"href":"https://api.github.com/repos/apache/incubator-reef/issues/214"},"comments":{"href":"https://api.github.com/repos/apache/incubator-reef/issues/214/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/214/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-reef/pulls/214/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-reef/statuses/6bc6d140b2f82512780262046a125c4b48fa5736"}}}}