{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/smarthome/pulls/comments/50677997","id":50677997,"diff_hunk":"@@ -0,0 +1,95 @@\n+package org.eclipse.smarthome.core.common;","path":"bundles/core/org.eclipse.smarthome.core/src/main/java/org/eclipse/smarthome/core/common/Expression.java","position":1,"original_position":1,"commit_id":"2d8959e67b62c88eb8b79dc7ab9ba98da4afeda8","original_commit_id":"2d8959e67b62c88eb8b79dc7ab9ba98da4afeda8","user":{"login":"sbussweiler","id":5637899,"avatar_url":"https://avatars.githubusercontent.com/u/5637899?v=3","gravatar_id":"","url":"https://api.github.com/users/sbussweiler","html_url":"https://github.com/sbussweiler","followers_url":"https://api.github.com/users/sbussweiler/followers","following_url":"https://api.github.com/users/sbussweiler/following{/other_user}","gists_url":"https://api.github.com/users/sbussweiler/gists{/gist_id}","starred_url":"https://api.github.com/users/sbussweiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbussweiler/subscriptions","organizations_url":"https://api.github.com/users/sbussweiler/orgs","repos_url":"https://api.github.com/users/sbussweiler/repos","events_url":"https://api.github.com/users/sbussweiler/events{/privacy}","received_events_url":"https://api.github.com/users/sbussweiler/received_events","type":"User","site_admin":false},"body":"Add copyright info to the class","created_at":"2016-01-25T10:43:02Z","updated_at":"2016-01-25T10:43:02Z","html_url":"https://github.com/eclipse/smarthome/pull/869#discussion_r50677997","pull_request_url":"https://api.github.com/repos/eclipse/smarthome/pulls/869","_links":{"self":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/comments/50677997"},"html":{"href":"https://github.com/eclipse/smarthome/pull/869#discussion_r50677997"},"pull_request":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/869"}}},"pull_request":{"url":"https://api.github.com/repos/eclipse/smarthome/pulls/869","id":56252191,"html_url":"https://github.com/eclipse/smarthome/pull/869","diff_url":"https://github.com/eclipse/smarthome/pull/869.diff","patch_url":"https://github.com/eclipse/smarthome/pull/869.patch","issue_url":"https://api.github.com/repos/eclipse/smarthome/issues/869","number":869,"state":"open","locked":false,"title":"Initial contribution of the  bespoke scheduler infrastructure for ESH","user":{"login":"kgoderis","id":5459062,"avatar_url":"https://avatars.githubusercontent.com/u/5459062?v=3","gravatar_id":"","url":"https://api.github.com/users/kgoderis","html_url":"https://github.com/kgoderis","followers_url":"https://api.github.com/users/kgoderis/followers","following_url":"https://api.github.com/users/kgoderis/following{/other_user}","gists_url":"https://api.github.com/users/kgoderis/gists{/gist_id}","starred_url":"https://api.github.com/users/kgoderis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgoderis/subscriptions","organizations_url":"https://api.github.com/users/kgoderis/orgs","repos_url":"https://api.github.com/users/kgoderis/repos","events_url":"https://api.github.com/users/kgoderis/events{/privacy}","received_events_url":"https://api.github.com/users/kgoderis/received_events","type":"User","site_admin":false},"body":"This is the initial contribution (and preview) of a bespoke scheduler infrastructure for ESH. It supports cron, RFC5545 and ISO8601 style expressions, and builds on top of the ThreadPoolMananger class.\r\n\r\nIt is a first step to move away from the Quartz library (not included in this PR). The contribution will allow to write code like:\r\n\r\n    ExpressionThreadPoolExecutor scheduler = ThreadPoolManager.getExpressionScheduledPool(\"somePool\");\r\n\r\nThen define expressions as follows\r\n\r\n    CronExpression exp = new CronExpression(\"0 15 10 ? * 6L 2015-2020\");\r\n\r\nor\r\n\r\n    DateExpression exp = new DateExpression(\"2016-01-13T14:33:37+00:00\");\r\n\r\nor\r\n\r\n    RecurrenceExpression exp = new RecurrenceExpression(\"FREQ=WEEKLY;INTERVAL=2;COUNT=4;BYDAY=TU,SU;WKST=MO\");\r\n\r\nand finally schedule tasks\r\n\r\n    Runnable scheduleTask = new Runnable() {\r\n                @Override\r\n                public void run() {\r\n                    logger.debug(\"Hello World\");\r\n                }\r\n            };\r\n    scheduler.schedule(scheduleTask, exp);\r\n\r\n\r\nSigned-off-by: Karel Goderis <karel.goderis@me.com>","created_at":"2016-01-16T11:58:15Z","updated_at":"2016-01-25T10:43:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1cf5f6c947cf97e4d0cd09f88238e2b8694a5ec2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eclipse/smarthome/pulls/869/commits","review_comments_url":"https://api.github.com/repos/eclipse/smarthome/pulls/869/comments","review_comment_url":"https://api.github.com/repos/eclipse/smarthome/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/smarthome/issues/869/comments","statuses_url":"https://api.github.com/repos/eclipse/smarthome/statuses/2d8959e67b62c88eb8b79dc7ab9ba98da4afeda8","head":{"label":"kgoderis:scheduler","ref":"scheduler","sha":"2d8959e67b62c88eb8b79dc7ab9ba98da4afeda8","user":{"login":"kgoderis","id":5459062,"avatar_url":"https://avatars.githubusercontent.com/u/5459062?v=3","gravatar_id":"","url":"https://api.github.com/users/kgoderis","html_url":"https://github.com/kgoderis","followers_url":"https://api.github.com/users/kgoderis/followers","following_url":"https://api.github.com/users/kgoderis/following{/other_user}","gists_url":"https://api.github.com/users/kgoderis/gists{/gist_id}","starred_url":"https://api.github.com/users/kgoderis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgoderis/subscriptions","organizations_url":"https://api.github.com/users/kgoderis/orgs","repos_url":"https://api.github.com/users/kgoderis/repos","events_url":"https://api.github.com/users/kgoderis/events{/privacy}","received_events_url":"https://api.github.com/users/kgoderis/received_events","type":"User","site_admin":false},"repo":{"id":41760085,"name":"smarthome","full_name":"kgoderis/smarthome","owner":{"login":"kgoderis","id":5459062,"avatar_url":"https://avatars.githubusercontent.com/u/5459062?v=3","gravatar_id":"","url":"https://api.github.com/users/kgoderis","html_url":"https://github.com/kgoderis","followers_url":"https://api.github.com/users/kgoderis/followers","following_url":"https://api.github.com/users/kgoderis/following{/other_user}","gists_url":"https://api.github.com/users/kgoderis/gists{/gist_id}","starred_url":"https://api.github.com/users/kgoderis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgoderis/subscriptions","organizations_url":"https://api.github.com/users/kgoderis/orgs","repos_url":"https://api.github.com/users/kgoderis/repos","events_url":"https://api.github.com/users/kgoderis/events{/privacy}","received_events_url":"https://api.github.com/users/kgoderis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kgoderis/smarthome","description":"Eclipse SmartHome project","fork":true,"url":"https://api.github.com/repos/kgoderis/smarthome","forks_url":"https://api.github.com/repos/kgoderis/smarthome/forks","keys_url":"https://api.github.com/repos/kgoderis/smarthome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kgoderis/smarthome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kgoderis/smarthome/teams","hooks_url":"https://api.github.com/repos/kgoderis/smarthome/hooks","issue_events_url":"https://api.github.com/repos/kgoderis/smarthome/issues/events{/number}","events_url":"https://api.github.com/repos/kgoderis/smarthome/events","assignees_url":"https://api.github.com/repos/kgoderis/smarthome/assignees{/user}","branches_url":"https://api.github.com/repos/kgoderis/smarthome/branches{/branch}","tags_url":"https://api.github.com/repos/kgoderis/smarthome/tags","blobs_url":"https://api.github.com/repos/kgoderis/smarthome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kgoderis/smarthome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kgoderis/smarthome/git/refs{/sha}","trees_url":"https://api.github.com/repos/kgoderis/smarthome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kgoderis/smarthome/statuses/{sha}","languages_url":"https://api.github.com/repos/kgoderis/smarthome/languages","stargazers_url":"https://api.github.com/repos/kgoderis/smarthome/stargazers","contributors_url":"https://api.github.com/repos/kgoderis/smarthome/contributors","subscribers_url":"https://api.github.com/repos/kgoderis/smarthome/subscribers","subscription_url":"https://api.github.com/repos/kgoderis/smarthome/subscription","commits_url":"https://api.github.com/repos/kgoderis/smarthome/commits{/sha}","git_commits_url":"https://api.github.com/repos/kgoderis/smarthome/git/commits{/sha}","comments_url":"https://api.github.com/repos/kgoderis/smarthome/comments{/number}","issue_comment_url":"https://api.github.com/repos/kgoderis/smarthome/issues/comments{/number}","contents_url":"https://api.github.com/repos/kgoderis/smarthome/contents/{+path}","compare_url":"https://api.github.com/repos/kgoderis/smarthome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kgoderis/smarthome/merges","archive_url":"https://api.github.com/repos/kgoderis/smarthome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kgoderis/smarthome/downloads","issues_url":"https://api.github.com/repos/kgoderis/smarthome/issues{/number}","pulls_url":"https://api.github.com/repos/kgoderis/smarthome/pulls{/number}","milestones_url":"https://api.github.com/repos/kgoderis/smarthome/milestones{/number}","notifications_url":"https://api.github.com/repos/kgoderis/smarthome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kgoderis/smarthome/labels{/name}","releases_url":"https://api.github.com/repos/kgoderis/smarthome/releases{/id}","deployments_url":"https://api.github.com/repos/kgoderis/smarthome/deployments","created_at":"2015-09-01T19:57:31Z","updated_at":"2016-01-13T15:05:55Z","pushed_at":"2016-01-24T14:29:03Z","git_url":"git://github.com/kgoderis/smarthome.git","ssh_url":"git@github.com:kgoderis/smarthome.git","clone_url":"https://github.com/kgoderis/smarthome.git","svn_url":"https://github.com/kgoderis/smarthome","homepage":null,"size":17765,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"eclipse:master","ref":"master","sha":"c459188068f9e5f1070548ee14c37e9e987b4230","user":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":15778981,"name":"smarthome","full_name":"eclipse/smarthome","owner":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipse/smarthome","description":"Eclipse SmartHome project","fork":false,"url":"https://api.github.com/repos/eclipse/smarthome","forks_url":"https://api.github.com/repos/eclipse/smarthome/forks","keys_url":"https://api.github.com/repos/eclipse/smarthome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/smarthome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/smarthome/teams","hooks_url":"https://api.github.com/repos/eclipse/smarthome/hooks","issue_events_url":"https://api.github.com/repos/eclipse/smarthome/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/smarthome/events","assignees_url":"https://api.github.com/repos/eclipse/smarthome/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/smarthome/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/smarthome/tags","blobs_url":"https://api.github.com/repos/eclipse/smarthome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/smarthome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/smarthome/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/smarthome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/smarthome/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/smarthome/languages","stargazers_url":"https://api.github.com/repos/eclipse/smarthome/stargazers","contributors_url":"https://api.github.com/repos/eclipse/smarthome/contributors","subscribers_url":"https://api.github.com/repos/eclipse/smarthome/subscribers","subscription_url":"https://api.github.com/repos/eclipse/smarthome/subscription","commits_url":"https://api.github.com/repos/eclipse/smarthome/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/smarthome/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/smarthome/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/smarthome/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/smarthome/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/smarthome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/smarthome/merges","archive_url":"https://api.github.com/repos/eclipse/smarthome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/smarthome/downloads","issues_url":"https://api.github.com/repos/eclipse/smarthome/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/smarthome/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/smarthome/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/smarthome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/smarthome/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/smarthome/releases{/id}","deployments_url":"https://api.github.com/repos/eclipse/smarthome/deployments","created_at":"2014-01-09T20:47:19Z","updated_at":"2016-01-24T17:58:54Z","pushed_at":"2016-01-25T06:46:43Z","git_url":"git://github.com/eclipse/smarthome.git","ssh_url":"git@github.com:eclipse/smarthome.git","clone_url":"https://github.com/eclipse/smarthome.git","svn_url":"https://github.com/eclipse/smarthome","homepage":null,"size":27096,"stargazers_count":237,"watchers_count":237,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":227,"mirror_url":null,"open_issues_count":168,"forks":227,"open_issues":168,"watchers":237,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/869"},"html":{"href":"https://github.com/eclipse/smarthome/pull/869"},"issue":{"href":"https://api.github.com/repos/eclipse/smarthome/issues/869"},"comments":{"href":"https://api.github.com/repos/eclipse/smarthome/issues/869/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/869/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/smarthome/pulls/869/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/smarthome/statuses/2d8959e67b62c88eb8b79dc7ab9ba98da4afeda8"}}}}