{"action":"created","comment":{"url":"https://api.github.com/repos/lookout/metrics-wizard/pulls/comments/30320666","id":30320666,"diff_hunk":"@@ -0,0 +1,48 @@\n+package com.github.lookout.metricswizard;\n+\n+import java.io.IOException;\n+import java.lang.instrument.Instrumentation;\n+\n+import com.github.lookout.metricswizard.mbeansdiscovery.MBeansDiscovery;\n+import com.github.lookout.metricswizard.metricsbuilder.MetricsBuilder;\n+\n+\n+/**\n+ * WizardAgent is a Java Agent that accumulates and reports metrics\n+ * (i.e. MBean attributes) to upstream server\n+ */\n+public class WizardAgent {\n+    private MBeansDiscovery mBeansDiscovery;\n+    private MetricsBuilder metricsBuilder;","path":"src/main/java/com/github/lookout/metricswizard/WizardAgent.java","position":16,"original_position":16,"commit_id":"3e977d51d3c09bc3d08d99821b6264bf77f7b8ad","original_commit_id":"3e977d51d3c09bc3d08d99821b6264bf77f7b8ad","user":{"login":"maheshkelkar","id":10839177,"avatar_url":"https://avatars.githubusercontent.com/u/10839177?v=3","gravatar_id":"","url":"https://api.github.com/users/maheshkelkar","html_url":"https://github.com/maheshkelkar","followers_url":"https://api.github.com/users/maheshkelkar/followers","following_url":"https://api.github.com/users/maheshkelkar/following{/other_user}","gists_url":"https://api.github.com/users/maheshkelkar/gists{/gist_id}","starred_url":"https://api.github.com/users/maheshkelkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maheshkelkar/subscriptions","organizations_url":"https://api.github.com/users/maheshkelkar/orgs","repos_url":"https://api.github.com/users/maheshkelkar/repos","events_url":"https://api.github.com/users/maheshkelkar/events{/privacy}","received_events_url":"https://api.github.com/users/maheshkelkar/received_events","type":"User","site_admin":false},"body":"As per the current proposal: `mBeansDiscovery.start()` does not block. The Metrics-Wizard is driven by (a) the ListenerNotification(s) i.e. wakeup from the JMX interface and (b) polling timer.\r\n","created_at":"2015-05-14T13:38:00Z","updated_at":"2015-05-14T13:38:00Z","html_url":"https://github.com/lookout/metrics-wizard/pull/5#discussion_r30320666","pull_request_url":"https://api.github.com/repos/lookout/metrics-wizard/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/lookout/metrics-wizard/pulls/comments/30320666"},"html":{"href":"https://github.com/lookout/metrics-wizard/pull/5#discussion_r30320666"},"pull_request":{"href":"https://api.github.com/repos/lookout/metrics-wizard/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/lookout/metrics-wizard/pulls/5","id":35351791,"html_url":"https://github.com/lookout/metrics-wizard/pull/5","diff_url":"https://github.com/lookout/metrics-wizard/pull/5.diff","patch_url":"https://github.com/lookout/metrics-wizard/pull/5.patch","issue_url":"https://api.github.com/repos/lookout/metrics-wizard/issues/5","number":5,"state":"open","locked":false,"title":"Add empty shell classes for MBeansDiscovery and spock tests.","user":{"login":"maheshkelkar","id":10839177,"avatar_url":"https://avatars.githubusercontent.com/u/10839177?v=3","gravatar_id":"","url":"https://api.github.com/users/maheshkelkar","html_url":"https://github.com/maheshkelkar","followers_url":"https://api.github.com/users/maheshkelkar/followers","following_url":"https://api.github.com/users/maheshkelkar/following{/other_user}","gists_url":"https://api.github.com/users/maheshkelkar/gists{/gist_id}","starred_url":"https://api.github.com/users/maheshkelkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maheshkelkar/subscriptions","organizations_url":"https://api.github.com/users/maheshkelkar/orgs","repos_url":"https://api.github.com/users/maheshkelkar/repos","events_url":"https://api.github.com/users/maheshkelkar/events{/privacy}","received_events_url":"https://api.github.com/users/maheshkelkar/received_events","type":"User","site_admin":false},"body":"Fixes #4","created_at":"2015-05-13T17:41:05Z","updated_at":"2015-05-14T13:38:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71e167b3fddeb2837c4506bb13b42ab8ddb18066","assignee":{"login":"GiriDandu","id":4194632,"avatar_url":"https://avatars.githubusercontent.com/u/4194632?v=3","gravatar_id":"","url":"https://api.github.com/users/GiriDandu","html_url":"https://github.com/GiriDandu","followers_url":"https://api.github.com/users/GiriDandu/followers","following_url":"https://api.github.com/users/GiriDandu/following{/other_user}","gists_url":"https://api.github.com/users/GiriDandu/gists{/gist_id}","starred_url":"https://api.github.com/users/GiriDandu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GiriDandu/subscriptions","organizations_url":"https://api.github.com/users/GiriDandu/orgs","repos_url":"https://api.github.com/users/GiriDandu/repos","events_url":"https://api.github.com/users/GiriDandu/events{/privacy}","received_events_url":"https://api.github.com/users/GiriDandu/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/lookout/metrics-wizard/pulls/5/commits","review_comments_url":"https://api.github.com/repos/lookout/metrics-wizard/pulls/5/comments","review_comment_url":"https://api.github.com/repos/lookout/metrics-wizard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lookout/metrics-wizard/issues/5/comments","statuses_url":"https://api.github.com/repos/lookout/metrics-wizard/statuses/3e977d51d3c09bc3d08d99821b6264bf77f7b8ad","head":{"label":"maheshkelkar:issues/4-add-base-dir-class-struct","ref":"issues/4-add-base-dir-class-struct","sha":"3e977d51d3c09bc3d08d99821b6264bf77f7b8ad","user":{"login":"maheshkelkar","id":10839177,"avatar_url":"https://avatars.githubusercontent.com/u/10839177?v=3","gravatar_id":"","url":"https://api.github.com/users/maheshkelkar","html_url":"https://github.com/maheshkelkar","followers_url":"https://api.github.com/users/maheshkelkar/followers","following_url":"https://api.github.com/users/maheshkelkar/following{/other_user}","gists_url":"https://api.github.com/users/maheshkelkar/gists{/gist_id}","starred_url":"https://api.github.com/users/maheshkelkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maheshkelkar/subscriptions","organizations_url":"https://api.github.com/users/maheshkelkar/orgs","repos_url":"https://api.github.com/users/maheshkelkar/repos","events_url":"https://api.github.com/users/maheshkelkar/events{/privacy}","received_events_url":"https://api.github.com/users/maheshkelkar/received_events","type":"User","site_admin":false},"repo":{"id":35158574,"name":"metrics-wizard","full_name":"maheshkelkar/metrics-wizard","owner":{"login":"maheshkelkar","id":10839177,"avatar_url":"https://avatars.githubusercontent.com/u/10839177?v=3","gravatar_id":"","url":"https://api.github.com/users/maheshkelkar","html_url":"https://github.com/maheshkelkar","followers_url":"https://api.github.com/users/maheshkelkar/followers","following_url":"https://api.github.com/users/maheshkelkar/following{/other_user}","gists_url":"https://api.github.com/users/maheshkelkar/gists{/gist_id}","starred_url":"https://api.github.com/users/maheshkelkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maheshkelkar/subscriptions","organizations_url":"https://api.github.com/users/maheshkelkar/orgs","repos_url":"https://api.github.com/users/maheshkelkar/repos","events_url":"https://api.github.com/users/maheshkelkar/events{/privacy}","received_events_url":"https://api.github.com/users/maheshkelkar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maheshkelkar/metrics-wizard","description":"A java agent to read your JMX metrics and magically send them somewhere else","fork":true,"url":"https://api.github.com/repos/maheshkelkar/metrics-wizard","forks_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/forks","keys_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/teams","hooks_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/hooks","issue_events_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/issues/events{/number}","events_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/events","assignees_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/assignees{/user}","branches_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/branches{/branch}","tags_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/tags","blobs_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/git/refs{/sha}","trees_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/statuses/{sha}","languages_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/languages","stargazers_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/stargazers","contributors_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/contributors","subscribers_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/subscribers","subscription_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/subscription","commits_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/commits{/sha}","git_commits_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/git/commits{/sha}","comments_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/comments{/number}","issue_comment_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/issues/comments{/number}","contents_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/contents/{+path}","compare_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/merges","archive_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/downloads","issues_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/issues{/number}","pulls_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/pulls{/number}","milestones_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/milestones{/number}","notifications_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/labels{/name}","releases_url":"https://api.github.com/repos/maheshkelkar/metrics-wizard/releases{/id}","created_at":"2015-05-06T12:59:15Z","updated_at":"2015-03-29T18:36:05Z","pushed_at":"2015-05-13T20:26:03Z","git_url":"git://github.com/maheshkelkar/metrics-wizard.git","ssh_url":"git@github.com:maheshkelkar/metrics-wizard.git","clone_url":"https://github.com/maheshkelkar/metrics-wizard.git","svn_url":"https://github.com/maheshkelkar/metrics-wizard","homepage":null,"size":168,"stargazers_count":0,"watchers_count":0,"language":null,"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":"lookout:master","ref":"master","sha":"67f709d22a2fbc6f6970820407f3609fa833cc3a","user":{"login":"lookout","id":47237,"avatar_url":"https://avatars.githubusercontent.com/u/47237?v=3","gravatar_id":"","url":"https://api.github.com/users/lookout","html_url":"https://github.com/lookout","followers_url":"https://api.github.com/users/lookout/followers","following_url":"https://api.github.com/users/lookout/following{/other_user}","gists_url":"https://api.github.com/users/lookout/gists{/gist_id}","starred_url":"https://api.github.com/users/lookout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lookout/subscriptions","organizations_url":"https://api.github.com/users/lookout/orgs","repos_url":"https://api.github.com/users/lookout/repos","events_url":"https://api.github.com/users/lookout/events{/privacy}","received_events_url":"https://api.github.com/users/lookout/received_events","type":"Organization","site_admin":false},"repo":{"id":33084117,"name":"metrics-wizard","full_name":"lookout/metrics-wizard","owner":{"login":"lookout","id":47237,"avatar_url":"https://avatars.githubusercontent.com/u/47237?v=3","gravatar_id":"","url":"https://api.github.com/users/lookout","html_url":"https://github.com/lookout","followers_url":"https://api.github.com/users/lookout/followers","following_url":"https://api.github.com/users/lookout/following{/other_user}","gists_url":"https://api.github.com/users/lookout/gists{/gist_id}","starred_url":"https://api.github.com/users/lookout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lookout/subscriptions","organizations_url":"https://api.github.com/users/lookout/orgs","repos_url":"https://api.github.com/users/lookout/repos","events_url":"https://api.github.com/users/lookout/events{/privacy}","received_events_url":"https://api.github.com/users/lookout/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lookout/metrics-wizard","description":"A java agent to read your JMX metrics and magically send them somewhere else","fork":false,"url":"https://api.github.com/repos/lookout/metrics-wizard","forks_url":"https://api.github.com/repos/lookout/metrics-wizard/forks","keys_url":"https://api.github.com/repos/lookout/metrics-wizard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lookout/metrics-wizard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lookout/metrics-wizard/teams","hooks_url":"https://api.github.com/repos/lookout/metrics-wizard/hooks","issue_events_url":"https://api.github.com/repos/lookout/metrics-wizard/issues/events{/number}","events_url":"https://api.github.com/repos/lookout/metrics-wizard/events","assignees_url":"https://api.github.com/repos/lookout/metrics-wizard/assignees{/user}","branches_url":"https://api.github.com/repos/lookout/metrics-wizard/branches{/branch}","tags_url":"https://api.github.com/repos/lookout/metrics-wizard/tags","blobs_url":"https://api.github.com/repos/lookout/metrics-wizard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lookout/metrics-wizard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lookout/metrics-wizard/git/refs{/sha}","trees_url":"https://api.github.com/repos/lookout/metrics-wizard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lookout/metrics-wizard/statuses/{sha}","languages_url":"https://api.github.com/repos/lookout/metrics-wizard/languages","stargazers_url":"https://api.github.com/repos/lookout/metrics-wizard/stargazers","contributors_url":"https://api.github.com/repos/lookout/metrics-wizard/contributors","subscribers_url":"https://api.github.com/repos/lookout/metrics-wizard/subscribers","subscription_url":"https://api.github.com/repos/lookout/metrics-wizard/subscription","commits_url":"https://api.github.com/repos/lookout/metrics-wizard/commits{/sha}","git_commits_url":"https://api.github.com/repos/lookout/metrics-wizard/git/commits{/sha}","comments_url":"https://api.github.com/repos/lookout/metrics-wizard/comments{/number}","issue_comment_url":"https://api.github.com/repos/lookout/metrics-wizard/issues/comments{/number}","contents_url":"https://api.github.com/repos/lookout/metrics-wizard/contents/{+path}","compare_url":"https://api.github.com/repos/lookout/metrics-wizard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lookout/metrics-wizard/merges","archive_url":"https://api.github.com/repos/lookout/metrics-wizard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lookout/metrics-wizard/downloads","issues_url":"https://api.github.com/repos/lookout/metrics-wizard/issues{/number}","pulls_url":"https://api.github.com/repos/lookout/metrics-wizard/pulls{/number}","milestones_url":"https://api.github.com/repos/lookout/metrics-wizard/milestones{/number}","notifications_url":"https://api.github.com/repos/lookout/metrics-wizard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lookout/metrics-wizard/labels{/name}","releases_url":"https://api.github.com/repos/lookout/metrics-wizard/releases{/id}","created_at":"2015-03-29T18:36:05Z","updated_at":"2015-03-29T18:36:05Z","pushed_at":"2015-05-13T20:26:03Z","git_url":"git://github.com/lookout/metrics-wizard.git","ssh_url":"git@github.com:lookout/metrics-wizard.git","clone_url":"https://github.com/lookout/metrics-wizard.git","svn_url":"https://github.com/lookout/metrics-wizard","homepage":null,"size":229,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lookout/metrics-wizard/pulls/5"},"html":{"href":"https://github.com/lookout/metrics-wizard/pull/5"},"issue":{"href":"https://api.github.com/repos/lookout/metrics-wizard/issues/5"},"comments":{"href":"https://api.github.com/repos/lookout/metrics-wizard/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/lookout/metrics-wizard/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/lookout/metrics-wizard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lookout/metrics-wizard/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/lookout/metrics-wizard/statuses/3e977d51d3c09bc3d08d99821b6264bf77f7b8ad"}}}}