{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-geode/pulls/comments/70007678","id":70007678,"diff_hunk":"@@ -0,0 +1,47 @@\n+# Geode replicated region example\n+\n+This is one of the most basic examples. \n+Two servers host a replicated region.\n+The producer puts 50 entries into the replicated region. The consumer prints the number of entries in the region.\n+\n+## Steps\n+1. From the ```geode-examples/replicated``` directory, start the locator and two servers:\n+\n+        $ scripts/startAll.sh\n+\n+2. Run the producer:\n+\n+        $ gradle run -Pmain=Producer\n+        ...\n+        ... \n+        INFO: Done. Inserted 50 entries.\n+\n+3. Run the consumer:\n+\n+        $ gradle run -Pmain=Consumer\n+        ...\n+        ...\n+        INFO: Done. 50 entries available on the server(s).\n+\n+4. Kill one of the servers:\n+\n+        $ gfsh\n+        ...\n+        gfsh>connect\n+        gfsh>stop server --name=server1\n+        gfsh>quit\n+\n+5. Run the consumer a second time, and notice that all the entries are still available due to replication: \n+\n+        $ gradle run -Pmain=Consumer\n+        ...\n+        ...\n+        INFO: Done. 50 entries available on the server(s).\n+\n+6. Shutdown the system:\n+\n+        $ scripts/stopAll.sh\n+\n+This example is a simple demonstration on basic APIs of Geode, as well how to write tests using mocks for Geode applications.\n+\n+TODO: assume jUnit4","path":"geode-examples/replicated/README.md","position":47,"original_position":47,"commit_id":"18ca9958395cc51a9ad71ffa68ebe7fa6718f6da","original_commit_id":"18ca9958395cc51a9ad71ffa68ebe7fa6718f6da","user":{"login":"markito","id":163746,"avatar_url":"https://avatars.githubusercontent.com/u/163746?v=3","gravatar_id":"","url":"https://api.github.com/users/markito","html_url":"https://github.com/markito","followers_url":"https://api.github.com/users/markito/followers","following_url":"https://api.github.com/users/markito/following{/other_user}","gists_url":"https://api.github.com/users/markito/gists{/gist_id}","starred_url":"https://api.github.com/users/markito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markito/subscriptions","organizations_url":"https://api.github.com/users/markito/orgs","repos_url":"https://api.github.com/users/markito/repos","events_url":"https://api.github.com/users/markito/events{/privacy}","received_events_url":"https://api.github.com/users/markito/received_events","type":"User","site_admin":false},"body":"Oops, let's remove that line... Not needed anymore.  Thanks.","created_at":"2016-07-07T23:54:32Z","updated_at":"2016-07-07T23:54:32Z","html_url":"https://github.com/apache/incubator-geode/pull/171#discussion_r70007678","pull_request_url":"https://api.github.com/repos/apache/incubator-geode/pulls/171","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-geode/pulls/comments/70007678"},"html":{"href":"https://github.com/apache/incubator-geode/pull/171#discussion_r70007678"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-geode/pulls/171"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-geode/pulls/171","id":74657420,"html_url":"https://github.com/apache/incubator-geode/pull/171","diff_url":"https://github.com/apache/incubator-geode/pull/171.diff","patch_url":"https://github.com/apache/incubator-geode/pull/171.patch","issue_url":"https://api.github.com/repos/apache/incubator-geode/issues/171","number":171,"state":"open","locked":false,"title":"feature/geode 33","user":{"login":"markito","id":163746,"avatar_url":"https://avatars.githubusercontent.com/u/163746?v=3","gravatar_id":"","url":"https://api.github.com/users/markito","html_url":"https://github.com/markito","followers_url":"https://api.github.com/users/markito/followers","following_url":"https://api.github.com/users/markito/following{/other_user}","gists_url":"https://api.github.com/users/markito/gists{/gist_id}","starred_url":"https://api.github.com/users/markito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markito/subscriptions","organizations_url":"https://api.github.com/users/markito/orgs","repos_url":"https://api.github.com/users/markito/repos","events_url":"https://api.github.com/users/markito/events{/privacy}","received_events_url":"https://api.github.com/users/markito/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-21T17:58:03Z","updated_at":"2016-07-07T23:54:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f0450b5487a6b63d31ced4779d15546d3abdeee","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-geode/pulls/171/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-geode/pulls/171/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-geode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-geode/issues/171/comments","statuses_url":"https://api.github.com/repos/apache/incubator-geode/statuses/18ca9958395cc51a9ad71ffa68ebe7fa6718f6da","head":{"label":"apache:feature/GEODE-33","ref":"feature/GEODE-33","sha":"18ca9958395cc51a9ad71ffa68ebe7fa6718f6da","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":34839383,"name":"incubator-geode","full_name":"apache/incubator-geode","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-geode","description":"Mirror of Apache Geode (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-geode","forks_url":"https://api.github.com/repos/apache/incubator-geode/forks","keys_url":"https://api.github.com/repos/apache/incubator-geode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-geode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-geode/teams","hooks_url":"https://api.github.com/repos/apache/incubator-geode/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-geode/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-geode/events","assignees_url":"https://api.github.com/repos/apache/incubator-geode/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-geode/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-geode/tags","blobs_url":"https://api.github.com/repos/apache/incubator-geode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-geode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-geode/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-geode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-geode/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-geode/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-geode/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-geode/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-geode/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-geode/subscription","commits_url":"https://api.github.com/repos/apache/incubator-geode/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-geode/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-geode/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-geode/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-geode/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-geode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-geode/merges","archive_url":"https://api.github.com/repos/apache/incubator-geode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-geode/downloads","issues_url":"https://api.github.com/repos/apache/incubator-geode/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-geode/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-geode/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-geode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-geode/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-geode/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-geode/deployments","created_at":"2015-04-30T07:00:05Z","updated_at":"2016-07-07T09:07:38Z","pushed_at":"2016-07-07T22:24:08Z","git_url":"git://github.com/apache/incubator-geode.git","ssh_url":"git@github.com:apache/incubator-geode.git","clone_url":"https://github.com/apache/incubator-geode.git","svn_url":"https://github.com/apache/incubator-geode","homepage":null,"size":96922,"stargazers_count":544,"watchers_count":544,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":221,"mirror_url":"git://git.apache.org/incubator-geode.git","open_issues_count":7,"forks":221,"open_issues":7,"watchers":544,"default_branch":"develop"}},"base":{"label":"apache:develop","ref":"develop","sha":"087da4e3d084f64516181e7f06317cae64c8af40","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":34839383,"name":"incubator-geode","full_name":"apache/incubator-geode","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-geode","description":"Mirror of Apache Geode (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-geode","forks_url":"https://api.github.com/repos/apache/incubator-geode/forks","keys_url":"https://api.github.com/repos/apache/incubator-geode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-geode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-geode/teams","hooks_url":"https://api.github.com/repos/apache/incubator-geode/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-geode/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-geode/events","assignees_url":"https://api.github.com/repos/apache/incubator-geode/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-geode/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-geode/tags","blobs_url":"https://api.github.com/repos/apache/incubator-geode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-geode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-geode/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-geode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-geode/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-geode/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-geode/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-geode/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-geode/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-geode/subscription","commits_url":"https://api.github.com/repos/apache/incubator-geode/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-geode/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-geode/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-geode/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-geode/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-geode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-geode/merges","archive_url":"https://api.github.com/repos/apache/incubator-geode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-geode/downloads","issues_url":"https://api.github.com/repos/apache/incubator-geode/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-geode/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-geode/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-geode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-geode/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-geode/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-geode/deployments","created_at":"2015-04-30T07:00:05Z","updated_at":"2016-07-07T09:07:38Z","pushed_at":"2016-07-07T22:24:08Z","git_url":"git://github.com/apache/incubator-geode.git","ssh_url":"git@github.com:apache/incubator-geode.git","clone_url":"https://github.com/apache/incubator-geode.git","svn_url":"https://github.com/apache/incubator-geode","homepage":null,"size":96922,"stargazers_count":544,"watchers_count":544,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":221,"mirror_url":"git://git.apache.org/incubator-geode.git","open_issues_count":7,"forks":221,"open_issues":7,"watchers":544,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-geode/pulls/171"},"html":{"href":"https://github.com/apache/incubator-geode/pull/171"},"issue":{"href":"https://api.github.com/repos/apache/incubator-geode/issues/171"},"comments":{"href":"https://api.github.com/repos/apache/incubator-geode/issues/171/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-geode/pulls/171/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-geode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-geode/pulls/171/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-geode/statuses/18ca9958395cc51a9ad71ffa68ebe7fa6718f6da"}}}}
{"actor":{"display_login":"markito"}}