{"action":"created","comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/pulls/comments/37526283","id":37526283,"diff_hunk":"@@ -0,0 +1,65 @@\n+# encoding: utf-8\n+#\n+#Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n+#\n+#Licensed under the Apache License, Version 2.0 (the \"License\");\n+#you may not use this file except in compliance with the License.\n+#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, software\n+#distributed under the License is distributed on an \"AS IS\" BASIS,\n+#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+#See the License for the specific language governing permissions and\n+#limitations under the License.\n+#\n+require \"java\"\n+begin\n+  require 'jar-dependencies'\n+  require_jar( 'com.amazonaws', 'amazon-kinesis-client', '1.6.0' )\n+  require_jar( 'log4j', 'log4j', '1.2.17' )\n+end\n+java_import \"com.amazonaws.services.kinesis.clientlibrary.types.ShutdownReason\"\n+java_import \"java.lang.IllegalStateException\"\n+java_import \"org.apache.log4j.LogManager\"\n+\n+class LogStashRecordProcessor\n+  include com.amazonaws.services.kinesis.clientlibrary.interfaces::IRecordProcessor\n+\n+  attr_accessor :queue, :shard_id\n+\n+  def initialize(queue)\n+    # Workaround for IRecordProcessor.initialize(String shardId) interfering with constructor.\n+    # No good way to overload methods in JRuby, so deciding which was supposed to be called here.\n+    if (queue.is_a? String)\n+      @shard_id  = queue\n+      return","path":"lib/logstash/inputs/LogStashRecordProcessor.rb","position":37,"original_position":37,"commit_id":"0db4f9fb69e1e0fb16606bce77cee44750b384fb","original_commit_id":"0db4f9fb69e1e0fb16606bce77cee44750b384fb","user":{"login":"purbon","id":68540,"avatar_url":"https://avatars.githubusercontent.com/u/68540?v=3","gravatar_id":"","url":"https://api.github.com/users/purbon","html_url":"https://github.com/purbon","followers_url":"https://api.github.com/users/purbon/followers","following_url":"https://api.github.com/users/purbon/following{/other_user}","gists_url":"https://api.github.com/users/purbon/gists{/gist_id}","starred_url":"https://api.github.com/users/purbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purbon/subscriptions","organizations_url":"https://api.github.com/users/purbon/orgs","repos_url":"https://api.github.com/users/purbon/repos","events_url":"https://api.github.com/users/purbon/events{/privacy}","received_events_url":"https://api.github.com/users/purbon/received_events","type":"User","site_admin":false},"body":"I don't think this return statement should be necessary here.","created_at":"2015-08-20T13:08:14Z","updated_at":"2015-08-20T13:08:14Z","html_url":"https://github.com/logstash-plugins/logstash-input-dynamodb/pull/1#discussion_r37526283","pull_request_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/pulls/comments/37526283"},"html":{"href":"https://github.com/logstash-plugins/logstash-input-dynamodb/pull/1#discussion_r37526283"},"pull_request":{"href":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/pulls/1","id":42303639,"html_url":"https://github.com/logstash-plugins/logstash-input-dynamodb/pull/1","diff_url":"https://github.com/logstash-plugins/logstash-input-dynamodb/pull/1.diff","patch_url":"https://github.com/logstash-plugins/logstash-input-dynamodb/pull/1.patch","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/issues/1","number":1,"state":"open","locked":false,"title":"Initial commit logstash-input-dynamodb","user":{"login":"brandontom","id":3899879,"avatar_url":"https://avatars.githubusercontent.com/u/3899879?v=3","gravatar_id":"","url":"https://api.github.com/users/brandontom","html_url":"https://github.com/brandontom","followers_url":"https://api.github.com/users/brandontom/followers","following_url":"https://api.github.com/users/brandontom/following{/other_user}","gists_url":"https://api.github.com/users/brandontom/gists{/gist_id}","starred_url":"https://api.github.com/users/brandontom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandontom/subscriptions","organizations_url":"https://api.github.com/users/brandontom/orgs","repos_url":"https://api.github.com/users/brandontom/repos","events_url":"https://api.github.com/users/brandontom/events{/privacy}","received_events_url":"https://api.github.com/users/brandontom/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-13T00:12:53Z","updated_at":"2015-08-20T13:08:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b6cb0ec9a43cc79f80927b21a1b9867630d5b7ad","assignee":{"login":"purbon","id":68540,"avatar_url":"https://avatars.githubusercontent.com/u/68540?v=3","gravatar_id":"","url":"https://api.github.com/users/purbon","html_url":"https://github.com/purbon","followers_url":"https://api.github.com/users/purbon/followers","following_url":"https://api.github.com/users/purbon/following{/other_user}","gists_url":"https://api.github.com/users/purbon/gists{/gist_id}","starred_url":"https://api.github.com/users/purbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purbon/subscriptions","organizations_url":"https://api.github.com/users/purbon/orgs","repos_url":"https://api.github.com/users/purbon/repos","events_url":"https://api.github.com/users/purbon/events{/privacy}","received_events_url":"https://api.github.com/users/purbon/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/pulls/1/commits","review_comments_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/pulls/1/comments","review_comment_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/issues/1/comments","statuses_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/statuses/0db4f9fb69e1e0fb16606bce77cee44750b384fb","head":{"label":"brandontom:master","ref":"master","sha":"0db4f9fb69e1e0fb16606bce77cee44750b384fb","user":{"login":"brandontom","id":3899879,"avatar_url":"https://avatars.githubusercontent.com/u/3899879?v=3","gravatar_id":"","url":"https://api.github.com/users/brandontom","html_url":"https://github.com/brandontom","followers_url":"https://api.github.com/users/brandontom/followers","following_url":"https://api.github.com/users/brandontom/following{/other_user}","gists_url":"https://api.github.com/users/brandontom/gists{/gist_id}","starred_url":"https://api.github.com/users/brandontom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandontom/subscriptions","organizations_url":"https://api.github.com/users/brandontom/orgs","repos_url":"https://api.github.com/users/brandontom/repos","events_url":"https://api.github.com/users/brandontom/events{/privacy}","received_events_url":"https://api.github.com/users/brandontom/received_events","type":"User","site_admin":false},"repo":{"id":40626842,"name":"logstash-input-dynamodb","full_name":"brandontom/logstash-input-dynamodb","owner":{"login":"brandontom","id":3899879,"avatar_url":"https://avatars.githubusercontent.com/u/3899879?v=3","gravatar_id":"","url":"https://api.github.com/users/brandontom","html_url":"https://github.com/brandontom","followers_url":"https://api.github.com/users/brandontom/followers","following_url":"https://api.github.com/users/brandontom/following{/other_user}","gists_url":"https://api.github.com/users/brandontom/gists{/gist_id}","starred_url":"https://api.github.com/users/brandontom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandontom/subscriptions","organizations_url":"https://api.github.com/users/brandontom/orgs","repos_url":"https://api.github.com/users/brandontom/repos","events_url":"https://api.github.com/users/brandontom/events{/privacy}","received_events_url":"https://api.github.com/users/brandontom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brandontom/logstash-input-dynamodb","description":"DynamoDB input","fork":true,"url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb","forks_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/forks","keys_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/teams","hooks_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/hooks","issue_events_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/issues/events{/number}","events_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/events","assignees_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/assignees{/user}","branches_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/branches{/branch}","tags_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/tags","blobs_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/statuses/{sha}","languages_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/languages","stargazers_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/stargazers","contributors_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/contributors","subscribers_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/subscribers","subscription_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/subscription","commits_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/contents/{+path}","compare_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/merges","archive_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/downloads","issues_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/issues{/number}","pulls_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/pulls{/number}","milestones_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/milestones{/number}","notifications_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/labels{/name}","releases_url":"https://api.github.com/repos/brandontom/logstash-input-dynamodb/releases{/id}","created_at":"2015-08-12T22:13:58Z","updated_at":"2015-08-12T22:16:41Z","pushed_at":"2015-08-18T00:36:48Z","git_url":"git://github.com/brandontom/logstash-input-dynamodb.git","ssh_url":"git@github.com:brandontom/logstash-input-dynamodb.git","clone_url":"https://github.com/brandontom/logstash-input-dynamodb.git","svn_url":"https://github.com/brandontom/logstash-input-dynamodb","homepage":null,"size":118,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"logstash-plugins:master","ref":"master","sha":"4b6d603a925af998a205865b59251c72e69aabab","user":{"login":"logstash-plugins","id":8961934,"avatar_url":"https://avatars.githubusercontent.com/u/8961934?v=3","gravatar_id":"","url":"https://api.github.com/users/logstash-plugins","html_url":"https://github.com/logstash-plugins","followers_url":"https://api.github.com/users/logstash-plugins/followers","following_url":"https://api.github.com/users/logstash-plugins/following{/other_user}","gists_url":"https://api.github.com/users/logstash-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/logstash-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logstash-plugins/subscriptions","organizations_url":"https://api.github.com/users/logstash-plugins/orgs","repos_url":"https://api.github.com/users/logstash-plugins/repos","events_url":"https://api.github.com/users/logstash-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/logstash-plugins/received_events","type":"Organization","site_admin":false},"repo":{"id":38906839,"name":"logstash-input-dynamodb","full_name":"logstash-plugins/logstash-input-dynamodb","owner":{"login":"logstash-plugins","id":8961934,"avatar_url":"https://avatars.githubusercontent.com/u/8961934?v=3","gravatar_id":"","url":"https://api.github.com/users/logstash-plugins","html_url":"https://github.com/logstash-plugins","followers_url":"https://api.github.com/users/logstash-plugins/followers","following_url":"https://api.github.com/users/logstash-plugins/following{/other_user}","gists_url":"https://api.github.com/users/logstash-plugins/gists{/gist_id}","starred_url":"https://api.github.com/users/logstash-plugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logstash-plugins/subscriptions","organizations_url":"https://api.github.com/users/logstash-plugins/orgs","repos_url":"https://api.github.com/users/logstash-plugins/repos","events_url":"https://api.github.com/users/logstash-plugins/events{/privacy}","received_events_url":"https://api.github.com/users/logstash-plugins/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/logstash-plugins/logstash-input-dynamodb","description":"DynamoDB input","fork":false,"url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb","forks_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/forks","keys_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/teams","hooks_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/hooks","issue_events_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/issues/events{/number}","events_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/events","assignees_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/assignees{/user}","branches_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/branches{/branch}","tags_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/tags","blobs_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/statuses/{sha}","languages_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/languages","stargazers_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/stargazers","contributors_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/contributors","subscribers_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/subscribers","subscription_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/subscription","commits_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/contents/{+path}","compare_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/merges","archive_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/downloads","issues_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/issues{/number}","pulls_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/pulls{/number}","milestones_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/milestones{/number}","notifications_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/labels{/name}","releases_url":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/releases{/id}","created_at":"2015-07-10T23:45:40Z","updated_at":"2015-07-10T23:45:40Z","pushed_at":"2015-08-18T00:36:48Z","git_url":"git://github.com/logstash-plugins/logstash-input-dynamodb.git","ssh_url":"git@github.com:logstash-plugins/logstash-input-dynamodb.git","clone_url":"https://github.com/logstash-plugins/logstash-input-dynamodb.git","svn_url":"https://github.com/logstash-plugins/logstash-input-dynamodb","homepage":null,"size":248,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/pulls/1"},"html":{"href":"https://github.com/logstash-plugins/logstash-input-dynamodb/pull/1"},"issue":{"href":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/issues/1"},"comments":{"href":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/logstash-plugins/logstash-input-dynamodb/statuses/0db4f9fb69e1e0fb16606bce77cee44750b384fb"}}}}