{"action":"created","comment":{"url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/comments/56884385","id":56884385,"diff_hunk":"@@ -0,0 +1,58 @@\n+/*\n+ * The contents of this file are subject to the Terracotta Public License Version\n+ * 2.0 (the \"License\"); You may not use this file except in compliance with the\n+ * License. You may obtain a copy of the License at\n+ *\n+ * http://terracotta.org/legal/terracotta-public-license.\n+ *\n+ * Software distributed under the License is distributed on an \"AS IS\" basis,\n+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for\n+ * the specific language governing rights and limitations under the License.\n+ *\n+ * The Covered Software is OffHeap Resource.\n+ *\n+ * The Initial Developer of the Covered Software is\n+ * Terracotta, Inc., a Software AG company\n+ */\n+\n+package org.terracotta.offheapresource;\n+\n+import java.util.concurrent.atomic.AtomicLong;\n+\n+public class OffHeapResource {\n+\n+  private final AtomicLong remaining;\n+\n+  OffHeapResource(long size) {","path":"offheap-resource/src/main/java/org/terracotta/offheapresource/OffHeapResource.java","position":26,"original_position":26,"commit_id":"9fcccdcdfde1d9254e2b75974f08ace259bac9dc","original_commit_id":"9fcccdcdfde1d9254e2b75974f08ace259bac9dc","user":{"login":"chrisdennis","id":954331,"avatar_url":"https://avatars.githubusercontent.com/u/954331?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdennis","html_url":"https://github.com/chrisdennis","followers_url":"https://api.github.com/users/chrisdennis/followers","following_url":"https://api.github.com/users/chrisdennis/following{/other_user}","gists_url":"https://api.github.com/users/chrisdennis/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdennis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdennis/subscriptions","organizations_url":"https://api.github.com/users/chrisdennis/orgs","repos_url":"https://api.github.com/users/chrisdennis/repos","events_url":"https://api.github.com/users/chrisdennis/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdennis/received_events","type":"User","site_admin":false},"body":"Would be interesting to get some insight from @mathieucarbou on how such a service should expose that metric.  I'd rather it not be exposed through the normal API if it's only for use by M&M... since I imagine M&M would be accessing the service differently?\r\n","created_at":"2016-03-21T19:46:41Z","updated_at":"2016-03-21T19:46:41Z","html_url":"https://github.com/Terracotta-OSS/terracotta-platform/pull/51#discussion_r56884385","pull_request_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/comments/56884385"},"html":{"href":"https://github.com/Terracotta-OSS/terracotta-platform/pull/51#discussion_r56884385"},"pull_request":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/51","id":63426175,"html_url":"https://github.com/Terracotta-OSS/terracotta-platform/pull/51","diff_url":"https://github.com/Terracotta-OSS/terracotta-platform/pull/51.diff","patch_url":"https://github.com/Terracotta-OSS/terracotta-platform/pull/51.patch","issue_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/issues/51","number":51,"state":"open","locked":false,"title":"Issue #49 and Issue #50 : Offheap Resource","user":{"login":"chrisdennis","id":954331,"avatar_url":"https://avatars.githubusercontent.com/u/954331?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdennis","html_url":"https://github.com/chrisdennis","followers_url":"https://api.github.com/users/chrisdennis/followers","following_url":"https://api.github.com/users/chrisdennis/following{/other_user}","gists_url":"https://api.github.com/users/chrisdennis/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdennis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdennis/subscriptions","organizations_url":"https://api.github.com/users/chrisdennis/orgs","repos_url":"https://api.github.com/users/chrisdennis/repos","events_url":"https://api.github.com/users/chrisdennis/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdennis/received_events","type":"User","site_admin":false},"body":"I'm most interested in people's review of the XML configuration I'm proposing here.  The implementation is a little rougher around the edges... and will likely get cleaned up as I work with/on it.\r\n\r\n@ljacomet @cljohnso @myronkscott @jd0-sag you guys seem like a good shortlist for reviewers.","created_at":"2016-03-18T19:39:38Z","updated_at":"2016-03-21T19:46:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b9324b3824c0a7321721154b2475975938da64d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/51/commits","review_comments_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/51/comments","review_comment_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/issues/51/comments","statuses_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/statuses/9fcccdcdfde1d9254e2b75974f08ace259bac9dc","head":{"label":"chrisdennis:offheap-resource","ref":"offheap-resource","sha":"9fcccdcdfde1d9254e2b75974f08ace259bac9dc","user":{"login":"chrisdennis","id":954331,"avatar_url":"https://avatars.githubusercontent.com/u/954331?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdennis","html_url":"https://github.com/chrisdennis","followers_url":"https://api.github.com/users/chrisdennis/followers","following_url":"https://api.github.com/users/chrisdennis/following{/other_user}","gists_url":"https://api.github.com/users/chrisdennis/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdennis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdennis/subscriptions","organizations_url":"https://api.github.com/users/chrisdennis/orgs","repos_url":"https://api.github.com/users/chrisdennis/repos","events_url":"https://api.github.com/users/chrisdennis/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdennis/received_events","type":"User","site_admin":false},"repo":{"id":46798738,"name":"terracotta-platform","full_name":"chrisdennis/terracotta-platform","owner":{"login":"chrisdennis","id":954331,"avatar_url":"https://avatars.githubusercontent.com/u/954331?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdennis","html_url":"https://github.com/chrisdennis","followers_url":"https://api.github.com/users/chrisdennis/followers","following_url":"https://api.github.com/users/chrisdennis/following{/other_user}","gists_url":"https://api.github.com/users/chrisdennis/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdennis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdennis/subscriptions","organizations_url":"https://api.github.com/users/chrisdennis/orgs","repos_url":"https://api.github.com/users/chrisdennis/repos","events_url":"https://api.github.com/users/chrisdennis/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdennis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chrisdennis/terracotta-platform","description":"","fork":true,"url":"https://api.github.com/repos/chrisdennis/terracotta-platform","forks_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/forks","keys_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/teams","hooks_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/hooks","issue_events_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/issues/events{/number}","events_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/events","assignees_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/assignees{/user}","branches_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/branches{/branch}","tags_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/tags","blobs_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/languages","stargazers_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/stargazers","contributors_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/contributors","subscribers_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/subscribers","subscription_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/subscription","commits_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/contents/{+path}","compare_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/merges","archive_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/downloads","issues_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/issues{/number}","pulls_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/labels{/name}","releases_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/releases{/id}","deployments_url":"https://api.github.com/repos/chrisdennis/terracotta-platform/deployments","created_at":"2015-11-24T15:00:04Z","updated_at":"2016-01-14T19:50:39Z","pushed_at":"2016-03-18T19:48:38Z","git_url":"git://github.com/chrisdennis/terracotta-platform.git","ssh_url":"git@github.com:chrisdennis/terracotta-platform.git","clone_url":"https://github.com/chrisdennis/terracotta-platform.git","svn_url":"https://github.com/chrisdennis/terracotta-platform","homepage":"http://terracotta.org","size":215,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"Terracotta-OSS:master","ref":"master","sha":"7328157ed14cda9e6ef778fd2f09e0e10c1253fb","user":{"login":"Terracotta-OSS","id":4680389,"avatar_url":"https://avatars.githubusercontent.com/u/4680389?v=3","gravatar_id":"","url":"https://api.github.com/users/Terracotta-OSS","html_url":"https://github.com/Terracotta-OSS","followers_url":"https://api.github.com/users/Terracotta-OSS/followers","following_url":"https://api.github.com/users/Terracotta-OSS/following{/other_user}","gists_url":"https://api.github.com/users/Terracotta-OSS/gists{/gist_id}","starred_url":"https://api.github.com/users/Terracotta-OSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Terracotta-OSS/subscriptions","organizations_url":"https://api.github.com/users/Terracotta-OSS/orgs","repos_url":"https://api.github.com/users/Terracotta-OSS/repos","events_url":"https://api.github.com/users/Terracotta-OSS/events{/privacy}","received_events_url":"https://api.github.com/users/Terracotta-OSS/received_events","type":"Organization","site_admin":false},"repo":{"id":44253742,"name":"terracotta-platform","full_name":"Terracotta-OSS/terracotta-platform","owner":{"login":"Terracotta-OSS","id":4680389,"avatar_url":"https://avatars.githubusercontent.com/u/4680389?v=3","gravatar_id":"","url":"https://api.github.com/users/Terracotta-OSS","html_url":"https://github.com/Terracotta-OSS","followers_url":"https://api.github.com/users/Terracotta-OSS/followers","following_url":"https://api.github.com/users/Terracotta-OSS/following{/other_user}","gists_url":"https://api.github.com/users/Terracotta-OSS/gists{/gist_id}","starred_url":"https://api.github.com/users/Terracotta-OSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Terracotta-OSS/subscriptions","organizations_url":"https://api.github.com/users/Terracotta-OSS/orgs","repos_url":"https://api.github.com/users/Terracotta-OSS/repos","events_url":"https://api.github.com/users/Terracotta-OSS/events{/privacy}","received_events_url":"https://api.github.com/users/Terracotta-OSS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Terracotta-OSS/terracotta-platform","description":"","fork":false,"url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform","forks_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/forks","keys_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/teams","hooks_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/hooks","issue_events_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/issues/events{/number}","events_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/events","assignees_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/assignees{/user}","branches_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/branches{/branch}","tags_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/tags","blobs_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/languages","stargazers_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/stargazers","contributors_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/contributors","subscribers_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/subscribers","subscription_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/subscription","commits_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/contents/{+path}","compare_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/merges","archive_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/downloads","issues_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/issues{/number}","pulls_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/labels{/name}","releases_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/releases{/id}","deployments_url":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/deployments","created_at":"2015-10-14T14:37:13Z","updated_at":"2016-01-14T19:45:41Z","pushed_at":"2016-03-18T19:48:38Z","git_url":"git://github.com/Terracotta-OSS/terracotta-platform.git","ssh_url":"git@github.com:Terracotta-OSS/terracotta-platform.git","clone_url":"https://github.com/Terracotta-OSS/terracotta-platform.git","svn_url":"https://github.com/Terracotta-OSS/terracotta-platform","homepage":"http://terracotta.org","size":221,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":5,"forks":10,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/51"},"html":{"href":"https://github.com/Terracotta-OSS/terracotta-platform/pull/51"},"issue":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/issues/51"},"comments":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/Terracotta-OSS/terracotta-platform/statuses/9fcccdcdfde1d9254e2b75974f08ace259bac9dc"}}}}