{"action":"created","comment":{"url":"https://api.github.com/repos/IBMStreams/streamsx.topology/pulls/comments/37817348","id":37817348,"diff_hunk":"@@ -0,0 +1,51 @@\n+package com.ibm.streamsx.topology.context;\n+\n+import java.util.Set;\n+\n+import com.ibm.streamsx.topology.TopologyElement;\n+\n+/**\n+ * Placement directives for a topology element when executing\n+ * in a distributed runtime.\n+ * <BR>\n+ * Placement directives only apply when the topology\n+ * is submitted to a {@link StreamsContext.Type#DISTRIBUTED DISTRIBUTED},\n+ * {@link StreamsContext.Type#ANALYTICS_SERVICE ANALYTICS_SERVICE}\n+ * or {@link StreamsContext.Type#DISTRIBUTED_TESTER DISTRIBUTED_TESTER} context.\n+ * <BR>\n+ * For all other context types directives are ignored.\n+ */\n+public interface Placeable<T extends Placeable<T>> extends TopologyElement {\n+    \n+    /**\n+     * Fuse this container with other topology elements so that\n+     * at runtime they all execute within the same operating system process.\n+     * At runtime the process will require a resource that has been tagged with\n+     * all the {@link #addResourceTags(String...) resource tags added} to each fused element.\n+     * \n+     * @param elements Elements to fuse with this container.\n+     * \n+     * @return this\n+     */\n+    public T fuse(Placeable<?> ... elements);\n+    \n+    /**\n+     * Add required resource tags for this topology element for distributed submission.\n+     * This topology element and any it has been {@link #fuse(Placeable...) fused}","path":"java/src/com/ibm/streamsx/topology/context/Placeable.java","position":34,"original_position":34,"commit_id":"bdd2036fdd3569d4d79c2ae2436932d0678094f4","original_commit_id":"bdd2036fdd3569d4d79c2ae2436932d0678094f4","user":{"login":"ddebrunner","id":3769612,"avatar_url":"https://avatars.githubusercontent.com/u/3769612?v=3","gravatar_id":"","url":"https://api.github.com/users/ddebrunner","html_url":"https://github.com/ddebrunner","followers_url":"https://api.github.com/users/ddebrunner/followers","following_url":"https://api.github.com/users/ddebrunner/following{/other_user}","gists_url":"https://api.github.com/users/ddebrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/ddebrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddebrunner/subscriptions","organizations_url":"https://api.github.com/users/ddebrunner/orgs","repos_url":"https://api.github.com/users/ddebrunner/repos","events_url":"https://api.github.com/users/ddebrunner/events{/privacy}","received_events_url":"https://api.github.com/users/ddebrunner/received_events","type":"User","site_admin":false},"body":"Possibly, need to think about that.","created_at":"2015-08-24T23:27:12Z","updated_at":"2015-08-24T23:27:12Z","html_url":"https://github.com/IBMStreams/streamsx.topology/pull/162#discussion_r37817348","pull_request_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/pulls/162","_links":{"self":{"href":"https://api.github.com/repos/IBMStreams/streamsx.topology/pulls/comments/37817348"},"html":{"href":"https://github.com/IBMStreams/streamsx.topology/pull/162#discussion_r37817348"},"pull_request":{"href":"https://api.github.com/repos/IBMStreams/streamsx.topology/pulls/162"}}},"pull_request":{"url":"https://api.github.com/repos/IBMStreams/streamsx.topology/pulls/162","id":42875632,"html_url":"https://github.com/IBMStreams/streamsx.topology/pull/162","diff_url":"https://github.com/IBMStreams/streamsx.topology/pull/162.diff","patch_url":"https://github.com/IBMStreams/streamsx.topology/pull/162.patch","issue_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/issues/162","number":162,"state":"open","locked":false,"title":"Add Placeable interface without any implementation","user":{"login":"ddebrunner","id":3769612,"avatar_url":"https://avatars.githubusercontent.com/u/3769612?v=3","gravatar_id":"","url":"https://api.github.com/users/ddebrunner","html_url":"https://github.com/ddebrunner","followers_url":"https://api.github.com/users/ddebrunner/followers","following_url":"https://api.github.com/users/ddebrunner/following{/other_user}","gists_url":"https://api.github.com/users/ddebrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/ddebrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddebrunner/subscriptions","organizations_url":"https://api.github.com/users/ddebrunner/orgs","repos_url":"https://api.github.com/users/ddebrunner/repos","events_url":"https://api.github.com/users/ddebrunner/events{/privacy}","received_events_url":"https://api.github.com/users/ddebrunner/received_events","type":"User","site_admin":false},"body":"Do not merge, for review only!\r\n\r\nJust adding as a indication of the direction for supporting host placement.\r\n\r\nI added a new interface Placeable which has the fuse and add resource tag methods. It allows continued fluent style as was raised as an issue in #9 , e.g.\r\n\r\n`top.endlessSource(…).addResourceTag(\"ingest\").filter(...).transform(...)….`\r\n","created_at":"2015-08-19T23:16:26Z","updated_at":"2015-08-24T23:27:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa9060e82404dd0d25941d99165ee6210f7fad1c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/pulls/162/commits","review_comments_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/pulls/162/comments","review_comment_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/issues/162/comments","statuses_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/statuses/bdd2036fdd3569d4d79c2ae2436932d0678094f4","head":{"label":"ddebrunner:tags","ref":"tags","sha":"bdd2036fdd3569d4d79c2ae2436932d0678094f4","user":{"login":"ddebrunner","id":3769612,"avatar_url":"https://avatars.githubusercontent.com/u/3769612?v=3","gravatar_id":"","url":"https://api.github.com/users/ddebrunner","html_url":"https://github.com/ddebrunner","followers_url":"https://api.github.com/users/ddebrunner/followers","following_url":"https://api.github.com/users/ddebrunner/following{/other_user}","gists_url":"https://api.github.com/users/ddebrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/ddebrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddebrunner/subscriptions","organizations_url":"https://api.github.com/users/ddebrunner/orgs","repos_url":"https://api.github.com/users/ddebrunner/repos","events_url":"https://api.github.com/users/ddebrunner/events{/privacy}","received_events_url":"https://api.github.com/users/ddebrunner/received_events","type":"User","site_admin":false},"repo":{"id":37164884,"name":"streamsx.topology","full_name":"ddebrunner/streamsx.topology","owner":{"login":"ddebrunner","id":3769612,"avatar_url":"https://avatars.githubusercontent.com/u/3769612?v=3","gravatar_id":"","url":"https://api.github.com/users/ddebrunner","html_url":"https://github.com/ddebrunner","followers_url":"https://api.github.com/users/ddebrunner/followers","following_url":"https://api.github.com/users/ddebrunner/following{/other_user}","gists_url":"https://api.github.com/users/ddebrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/ddebrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddebrunner/subscriptions","organizations_url":"https://api.github.com/users/ddebrunner/orgs","repos_url":"https://api.github.com/users/ddebrunner/repos","events_url":"https://api.github.com/users/ddebrunner/events{/privacy}","received_events_url":"https://api.github.com/users/ddebrunner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ddebrunner/streamsx.topology","description":"A project that supports building streaming topologies (applications) for InfoSphere Streams in different programming languages, such as Java.","fork":true,"url":"https://api.github.com/repos/ddebrunner/streamsx.topology","forks_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/forks","keys_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/teams","hooks_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/hooks","issue_events_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/issues/events{/number}","events_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/events","assignees_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/assignees{/user}","branches_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/branches{/branch}","tags_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/tags","blobs_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/git/refs{/sha}","trees_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/statuses/{sha}","languages_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/languages","stargazers_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/stargazers","contributors_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/contributors","subscribers_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/subscribers","subscription_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/subscription","commits_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/commits{/sha}","git_commits_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/git/commits{/sha}","comments_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/comments{/number}","issue_comment_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/issues/comments{/number}","contents_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/contents/{+path}","compare_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/merges","archive_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/downloads","issues_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/issues{/number}","pulls_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/pulls{/number}","milestones_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/milestones{/number}","notifications_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/labels{/name}","releases_url":"https://api.github.com/repos/ddebrunner/streamsx.topology/releases{/id}","created_at":"2015-06-09T23:48:49Z","updated_at":"2015-06-15T02:29:58Z","pushed_at":"2015-08-19T23:09:14Z","git_url":"git://github.com/ddebrunner/streamsx.topology.git","ssh_url":"git@github.com:ddebrunner/streamsx.topology.git","clone_url":"https://github.com/ddebrunner/streamsx.topology.git","svn_url":"https://github.com/ddebrunner/streamsx.topology","homepage":"http://ibmstreams.github.io/streamsx.topology","size":3755,"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":"IBMStreams:master","ref":"master","sha":"6188f7de17828dd75cc7e2099512ef9661ec32db","user":{"login":"IBMStreams","id":5439177,"avatar_url":"https://avatars.githubusercontent.com/u/5439177?v=3","gravatar_id":"","url":"https://api.github.com/users/IBMStreams","html_url":"https://github.com/IBMStreams","followers_url":"https://api.github.com/users/IBMStreams/followers","following_url":"https://api.github.com/users/IBMStreams/following{/other_user}","gists_url":"https://api.github.com/users/IBMStreams/gists{/gist_id}","starred_url":"https://api.github.com/users/IBMStreams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IBMStreams/subscriptions","organizations_url":"https://api.github.com/users/IBMStreams/orgs","repos_url":"https://api.github.com/users/IBMStreams/repos","events_url":"https://api.github.com/users/IBMStreams/events{/privacy}","received_events_url":"https://api.github.com/users/IBMStreams/received_events","type":"Organization","site_admin":false},"repo":{"id":36458001,"name":"streamsx.topology","full_name":"IBMStreams/streamsx.topology","owner":{"login":"IBMStreams","id":5439177,"avatar_url":"https://avatars.githubusercontent.com/u/5439177?v=3","gravatar_id":"","url":"https://api.github.com/users/IBMStreams","html_url":"https://github.com/IBMStreams","followers_url":"https://api.github.com/users/IBMStreams/followers","following_url":"https://api.github.com/users/IBMStreams/following{/other_user}","gists_url":"https://api.github.com/users/IBMStreams/gists{/gist_id}","starred_url":"https://api.github.com/users/IBMStreams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IBMStreams/subscriptions","organizations_url":"https://api.github.com/users/IBMStreams/orgs","repos_url":"https://api.github.com/users/IBMStreams/repos","events_url":"https://api.github.com/users/IBMStreams/events{/privacy}","received_events_url":"https://api.github.com/users/IBMStreams/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IBMStreams/streamsx.topology","description":"A project that supports building streaming topologies (applications) for IBM Streams in different programming languages, such as Java and Scala.","fork":false,"url":"https://api.github.com/repos/IBMStreams/streamsx.topology","forks_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/forks","keys_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/teams","hooks_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/hooks","issue_events_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/issues/events{/number}","events_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/events","assignees_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/assignees{/user}","branches_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/branches{/branch}","tags_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/tags","blobs_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/git/refs{/sha}","trees_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/statuses/{sha}","languages_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/languages","stargazers_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/stargazers","contributors_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/contributors","subscribers_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/subscribers","subscription_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/subscription","commits_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/commits{/sha}","git_commits_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/git/commits{/sha}","comments_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/comments{/number}","issue_comment_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/issues/comments{/number}","contents_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/contents/{+path}","compare_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/merges","archive_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/downloads","issues_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/issues{/number}","pulls_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/pulls{/number}","milestones_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/milestones{/number}","notifications_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/labels{/name}","releases_url":"https://api.github.com/repos/IBMStreams/streamsx.topology/releases{/id}","created_at":"2015-05-28T18:30:13Z","updated_at":"2015-07-15T00:40:10Z","pushed_at":"2015-08-24T18:43:24Z","git_url":"git://github.com/IBMStreams/streamsx.topology.git","ssh_url":"git@github.com:IBMStreams/streamsx.topology.git","clone_url":"https://github.com/IBMStreams/streamsx.topology.git","svn_url":"https://github.com/IBMStreams/streamsx.topology","homepage":"http://ibmstreams.github.io/streamsx.topology","size":4871,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":31,"forks":7,"open_issues":31,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IBMStreams/streamsx.topology/pulls/162"},"html":{"href":"https://github.com/IBMStreams/streamsx.topology/pull/162"},"issue":{"href":"https://api.github.com/repos/IBMStreams/streamsx.topology/issues/162"},"comments":{"href":"https://api.github.com/repos/IBMStreams/streamsx.topology/issues/162/comments"},"review_comments":{"href":"https://api.github.com/repos/IBMStreams/streamsx.topology/pulls/162/comments"},"review_comment":{"href":"https://api.github.com/repos/IBMStreams/streamsx.topology/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IBMStreams/streamsx.topology/pulls/162/commits"},"statuses":{"href":"https://api.github.com/repos/IBMStreams/streamsx.topology/statuses/bdd2036fdd3569d4d79c2ae2436932d0678094f4"}}}}