{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/andes/pulls/comments/28948946","id":28948946,"diff_hunk":"@@ -0,0 +1,232 @@\n+/*\n+ * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n+ *\n+ * WSO2 Inc. licenses this file to you under the Apache License,\n+ * Version 2.0 (the \"License\"); you may not use this file except\n+ * 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,\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+\n+package org.wso2.andes.server.cluster.coordination.rdbms;\n+\n+import org.wso2.andes.kernel.AndesContext;\n+import org.wso2.andes.kernel.AndesContextStore;\n+import org.wso2.andes.kernel.AndesException;\n+import org.wso2.andes.kernel.slot.Slot;\n+import org.wso2.andes.kernel.slot.SlotState;\n+\n+import java.util.TreeSet;\n+\n+public class RDBMSAgent {\n+\n+\tprivate AndesContextStore andesContextStore = AndesContext.getInstance().getAndesContextStore();\n+\n+\tpublic static void main(String[] args) {\n+\n+\t}\n+\n+\t/**\n+\t * Create a slot in database\n+\t *\n+\t * @param messageCount message count\n+\t * @param startMessageId start message id\n+\t * @param endMessageId end message id end message id\n+\t * @param storageQueueName name of storage queue\n+\t * @param isSlotActive slot active status\n+\t * @param destinationOfMessage destination of message\n+\t */\n+\tpublic void createSlot(long messageCount, long startMessageId, long endMessageId,\n+\t                       String storageQueueName, boolean isSlotActive,\n+\t                       String destinationOfMessage) throws AndesException{\n+\t\tandesContextStore\n+\t\t\t\t.createSlot(messageCount, startMessageId, endMessageId, storageQueueName,\n+\t\t\t\t            isSlotActive, destinationOfMessage);\n+\t}","path":"modules/andes-core/broker/src/main/java/org/wso2/andes/server/cluster/coordination/rdbms/RDBMSAgent.java","position":53,"original_position":53,"commit_id":"1e41f1095613d74276841e9636bfd89c4d2f9417","original_commit_id":"1e41f1095613d74276841e9636bfd89c4d2f9417","user":{"login":"Asitha","id":919462,"avatar_url":"https://avatars.githubusercontent.com/u/919462?v=3","gravatar_id":"","url":"https://api.github.com/users/Asitha","html_url":"https://github.com/Asitha","followers_url":"https://api.github.com/users/Asitha/followers","following_url":"https://api.github.com/users/Asitha/following{/other_user}","gists_url":"https://api.github.com/users/Asitha/gists{/gist_id}","starred_url":"https://api.github.com/users/Asitha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Asitha/subscriptions","organizations_url":"https://api.github.com/users/Asitha/orgs","repos_url":"https://api.github.com/users/Asitha/repos","events_url":"https://api.github.com/users/Asitha/events{/privacy}","received_events_url":"https://api.github.com/users/Asitha/received_events","type":"User","site_admin":false},"body":"Shall we reorganize the code segment\r\n\r\neg:\r\n\r\n```\r\nandesContextStore.createSlot(messageCount, startMessageId, endMessageId,\r\n                             storageQueueName, isSlotActive, destinationOfMessage);\r\n```","created_at":"2015-04-23T09:34:49Z","updated_at":"2015-04-23T09:34:49Z","html_url":"https://github.com/wso2/andes/pull/102#discussion_r28948946","pull_request_url":"https://api.github.com/repos/wso2/andes/pulls/102","_links":{"self":{"href":"https://api.github.com/repos/wso2/andes/pulls/comments/28948946"},"html":{"href":"https://github.com/wso2/andes/pull/102#discussion_r28948946"},"pull_request":{"href":"https://api.github.com/repos/wso2/andes/pulls/102"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/andes/pulls/102","id":33513802,"html_url":"https://github.com/wso2/andes/pull/102","diff_url":"https://github.com/wso2/andes/pull/102.diff","patch_url":"https://github.com/wso2/andes/pull/102.patch","issue_url":"https://api.github.com/repos/wso2/andes/issues/102","number":102,"state":"open","locked":false,"title":"Implement a mechanism to save information in RDBMS","user":{"login":"AnujaLK","id":484263,"avatar_url":"https://avatars.githubusercontent.com/u/484263?v=3","gravatar_id":"","url":"https://api.github.com/users/AnujaLK","html_url":"https://github.com/AnujaLK","followers_url":"https://api.github.com/users/AnujaLK/followers","following_url":"https://api.github.com/users/AnujaLK/following{/other_user}","gists_url":"https://api.github.com/users/AnujaLK/gists{/gist_id}","starred_url":"https://api.github.com/users/AnujaLK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnujaLK/subscriptions","organizations_url":"https://api.github.com/users/AnujaLK/orgs","repos_url":"https://api.github.com/users/AnujaLK/repos","events_url":"https://api.github.com/users/AnujaLK/events{/privacy}","received_events_url":"https://api.github.com/users/AnujaLK/received_events","type":"User","site_admin":false},"body":"This code will replace hazelcast maps to RDBMS information saving","created_at":"2015-04-17T04:28:51Z","updated_at":"2015-04-23T09:34:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9733f17ede2a58cd3a504519830380743629e77c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/andes/pulls/102/commits","review_comments_url":"https://api.github.com/repos/wso2/andes/pulls/102/comments","review_comment_url":"https://api.github.com/repos/wso2/andes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/andes/issues/102/comments","statuses_url":"https://api.github.com/repos/wso2/andes/statuses/1e41f1095613d74276841e9636bfd89c4d2f9417","head":{"label":"AnujaLK:slot-info","ref":"slot-info","sha":"1e41f1095613d74276841e9636bfd89c4d2f9417","user":{"login":"AnujaLK","id":484263,"avatar_url":"https://avatars.githubusercontent.com/u/484263?v=3","gravatar_id":"","url":"https://api.github.com/users/AnujaLK","html_url":"https://github.com/AnujaLK","followers_url":"https://api.github.com/users/AnujaLK/followers","following_url":"https://api.github.com/users/AnujaLK/following{/other_user}","gists_url":"https://api.github.com/users/AnujaLK/gists{/gist_id}","starred_url":"https://api.github.com/users/AnujaLK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnujaLK/subscriptions","organizations_url":"https://api.github.com/users/AnujaLK/orgs","repos_url":"https://api.github.com/users/AnujaLK/repos","events_url":"https://api.github.com/users/AnujaLK/events{/privacy}","received_events_url":"https://api.github.com/users/AnujaLK/received_events","type":"User","site_admin":false},"repo":{"id":33649363,"name":"andes","full_name":"AnujaLK/andes","owner":{"login":"AnujaLK","id":484263,"avatar_url":"https://avatars.githubusercontent.com/u/484263?v=3","gravatar_id":"","url":"https://api.github.com/users/AnujaLK","html_url":"https://github.com/AnujaLK","followers_url":"https://api.github.com/users/AnujaLK/followers","following_url":"https://api.github.com/users/AnujaLK/following{/other_user}","gists_url":"https://api.github.com/users/AnujaLK/gists{/gist_id}","starred_url":"https://api.github.com/users/AnujaLK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnujaLK/subscriptions","organizations_url":"https://api.github.com/users/AnujaLK/orgs","repos_url":"https://api.github.com/users/AnujaLK/repos","events_url":"https://api.github.com/users/AnujaLK/events{/privacy}","received_events_url":"https://api.github.com/users/AnujaLK/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AnujaLK/andes","description":"","fork":true,"url":"https://api.github.com/repos/AnujaLK/andes","forks_url":"https://api.github.com/repos/AnujaLK/andes/forks","keys_url":"https://api.github.com/repos/AnujaLK/andes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AnujaLK/andes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AnujaLK/andes/teams","hooks_url":"https://api.github.com/repos/AnujaLK/andes/hooks","issue_events_url":"https://api.github.com/repos/AnujaLK/andes/issues/events{/number}","events_url":"https://api.github.com/repos/AnujaLK/andes/events","assignees_url":"https://api.github.com/repos/AnujaLK/andes/assignees{/user}","branches_url":"https://api.github.com/repos/AnujaLK/andes/branches{/branch}","tags_url":"https://api.github.com/repos/AnujaLK/andes/tags","blobs_url":"https://api.github.com/repos/AnujaLK/andes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AnujaLK/andes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AnujaLK/andes/git/refs{/sha}","trees_url":"https://api.github.com/repos/AnujaLK/andes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AnujaLK/andes/statuses/{sha}","languages_url":"https://api.github.com/repos/AnujaLK/andes/languages","stargazers_url":"https://api.github.com/repos/AnujaLK/andes/stargazers","contributors_url":"https://api.github.com/repos/AnujaLK/andes/contributors","subscribers_url":"https://api.github.com/repos/AnujaLK/andes/subscribers","subscription_url":"https://api.github.com/repos/AnujaLK/andes/subscription","commits_url":"https://api.github.com/repos/AnujaLK/andes/commits{/sha}","git_commits_url":"https://api.github.com/repos/AnujaLK/andes/git/commits{/sha}","comments_url":"https://api.github.com/repos/AnujaLK/andes/comments{/number}","issue_comment_url":"https://api.github.com/repos/AnujaLK/andes/issues/comments{/number}","contents_url":"https://api.github.com/repos/AnujaLK/andes/contents/{+path}","compare_url":"https://api.github.com/repos/AnujaLK/andes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AnujaLK/andes/merges","archive_url":"https://api.github.com/repos/AnujaLK/andes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AnujaLK/andes/downloads","issues_url":"https://api.github.com/repos/AnujaLK/andes/issues{/number}","pulls_url":"https://api.github.com/repos/AnujaLK/andes/pulls{/number}","milestones_url":"https://api.github.com/repos/AnujaLK/andes/milestones{/number}","notifications_url":"https://api.github.com/repos/AnujaLK/andes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AnujaLK/andes/labels{/name}","releases_url":"https://api.github.com/repos/AnujaLK/andes/releases{/id}","created_at":"2015-04-09T05:01:09Z","updated_at":"2015-04-21T06:44:01Z","pushed_at":"2015-04-23T07:50:52Z","git_url":"git://github.com/AnujaLK/andes.git","ssh_url":"git@github.com:AnujaLK/andes.git","clone_url":"https://github.com/AnujaLK/andes.git","svn_url":"https://github.com/AnujaLK/andes","homepage":null,"size":64210,"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":"wso2:master","ref":"master","sha":"55e02630eabf91657a815e327a7a508f338edc86","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":20559270,"name":"andes","full_name":"wso2/andes","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/andes","description":"","fork":false,"url":"https://api.github.com/repos/wso2/andes","forks_url":"https://api.github.com/repos/wso2/andes/forks","keys_url":"https://api.github.com/repos/wso2/andes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/andes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/andes/teams","hooks_url":"https://api.github.com/repos/wso2/andes/hooks","issue_events_url":"https://api.github.com/repos/wso2/andes/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/andes/events","assignees_url":"https://api.github.com/repos/wso2/andes/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/andes/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/andes/tags","blobs_url":"https://api.github.com/repos/wso2/andes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/andes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/andes/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/andes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/andes/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/andes/languages","stargazers_url":"https://api.github.com/repos/wso2/andes/stargazers","contributors_url":"https://api.github.com/repos/wso2/andes/contributors","subscribers_url":"https://api.github.com/repos/wso2/andes/subscribers","subscription_url":"https://api.github.com/repos/wso2/andes/subscription","commits_url":"https://api.github.com/repos/wso2/andes/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/andes/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/andes/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/andes/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/andes/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/andes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/andes/merges","archive_url":"https://api.github.com/repos/wso2/andes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/andes/downloads","issues_url":"https://api.github.com/repos/wso2/andes/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/andes/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/andes/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/andes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/andes/labels{/name}","releases_url":"https://api.github.com/repos/wso2/andes/releases{/id}","created_at":"2014-06-06T10:04:24Z","updated_at":"2015-04-23T08:23:05Z","pushed_at":"2015-04-23T08:23:05Z","git_url":"git://github.com/wso2/andes.git","ssh_url":"git@github.com:wso2/andes.git","clone_url":"https://github.com/wso2/andes.git","svn_url":"https://github.com/wso2/andes","homepage":null,"size":65889,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":7,"forks":33,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/andes/pulls/102"},"html":{"href":"https://github.com/wso2/andes/pull/102"},"issue":{"href":"https://api.github.com/repos/wso2/andes/issues/102"},"comments":{"href":"https://api.github.com/repos/wso2/andes/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/andes/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/andes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/andes/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/andes/statuses/1e41f1095613d74276841e9636bfd89c4d2f9417"}}}}