{"action":"created","comment":{"url":"https://api.github.com/repos/apache/brooklyn-server/pulls/comments/66412844","id":66412844,"diff_hunk":"@@ -0,0 +1,496 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with the License.  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+package org.apache.brooklyn.core.network;\n+\n+import java.net.URI;\n+import java.net.URISyntaxException;\n+import java.net.URL;\n+import java.util.Collection;\n+\n+import org.apache.brooklyn.api.entity.Entity;\n+import org.apache.brooklyn.api.entity.EntityLocal;\n+import org.apache.brooklyn.api.location.Location;\n+import org.apache.brooklyn.api.location.MachineLocation;\n+import org.apache.brooklyn.api.sensor.AttributeSensor;\n+import org.apache.brooklyn.api.sensor.Sensor;\n+import org.apache.brooklyn.api.sensor.SensorEvent;\n+import org.apache.brooklyn.api.sensor.SensorEventListener;\n+import org.apache.brooklyn.config.ConfigKey;\n+import org.apache.brooklyn.core.config.ConfigKeys;\n+import org.apache.brooklyn.core.enricher.AbstractEnricher;\n+import org.apache.brooklyn.core.entity.AbstractEntity;\n+import org.apache.brooklyn.core.location.Machines;\n+import org.apache.brooklyn.core.location.access.PortForwardManager;\n+import org.apache.brooklyn.core.location.access.PortForwardManagerLocationResolver;\n+import org.apache.brooklyn.core.location.access.PortForwardManager.AssociationListener;\n+import org.apache.brooklyn.core.location.access.PortForwardManager.AssociationMetadata;\n+import org.apache.brooklyn.core.sensor.Sensors;\n+import org.apache.brooklyn.util.core.flags.TypeCoercions;\n+import org.apache.brooklyn.util.exceptions.Exceptions;\n+import org.apache.brooklyn.util.guava.Maybe;\n+import org.apache.brooklyn.util.net.Networking;\n+import org.apache.brooklyn.util.text.StringPredicates;\n+import org.apache.brooklyn.util.text.Strings;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+import com.google.common.annotations.Beta;\n+import com.google.common.base.Function;\n+import com.google.common.base.Optional;\n+import com.google.common.base.Predicate;\n+import com.google.common.base.Predicates;\n+import com.google.common.collect.Lists;\n+import com.google.common.net.HostAndPort;\n+import com.google.common.reflect.TypeToken;\n+\n+/**\n+ * Can be added to an entity so that it advertises its mapped ports (according to the port-mappings\n+ * recorded in the PortForwardManager). This can be used with sensors of type URI, HostAndPort\n+ * or plain integer port values. The port-mappings is retrieved by looking up the entity's machine\n+ * and the private port, in the PortForwardManager's recorded port-mappings.\n+ * \n+ * For example, to configure each Tomcat node to publish its mapped uri, and to use that sensor\n+ * in Nginx for the target servers:\n+ * <pre>\n+ * {@code\n+ * services:\n+ * - type: cluster\n+ *   id: cluster\n+ *   brooklyn.config:\n+ *    memberSpec:\n+ *      $brooklyn:entitySpec:\n+ *        type: org.apache.brooklyn.entity.webapp.tomcat.TomcatServer\n+ *        brooklyn.enrichers:\n+ *        - type: org.apache.brooklyn.core.location.access.PublicNetworkFaceEnricher\n+ *          brooklyn.config:\n+ *            sensor: main.uri\n+ * - type: org.apache.brooklyn.entity.proxy.nginx.NginxController\n+ *   brooklyn.config:\n+ *     member.sensor.hostandport: $brooklyn:sensor(\"main.uri.mapped.public\")\n+ *     serverPool: cluster\n+ * }\n+ * </pre>\n+ */\n+@Beta\n+public class OnPublicNetworkEnricher extends AbstractEnricher {\n+\n+    // TODO Is this the best package for the enricher?\n+    //\n+    // TODO Need more logging, particularly for when the value has *not* been transformed.\n+    //\n+    // TODO What if the sensor has an unrelated hostname - we will currently still transform this!\n+    // That seems acceptable: if the user configures it to look at the sensor, then we can make\n+    // assumptions that the sensor's value will need translated.\n+    //\n+    // TODO If there is no port-mapping, should we advertise the original sensor value?\n+    // That would allow the enricher to be used for an entity in a private network, and for\n+    // it to be a no-op in a public cloud (so the same blueprint can be used in both). \n+    // However I don't think we should publish the original value: it could be the association\n+    // just hasn't been created yet. If we publish the wrong (i.e. untransformed) value, that\n+    // will cause other entity's using attributeWhenReady to immediately trigger.\n+\n+    private static final Logger LOG = LoggerFactory.getLogger(OnPublicNetworkEnricher.class);\n+\n+    @SuppressWarnings(\"serial\")\n+    public static final ConfigKey<AttributeSensor<?>> SENSOR = ConfigKeys.newConfigKey(\n+            new TypeToken<AttributeSensor<?>>() {}, \n+            \"sensor\",\n+            \"The sensor whose mapped value is to be re-published (with suffix \\\"mapped.public\\\"); \"\n+                    + \"either 'sensor' or 'sensors' should be specified\");\n+\n+    @SuppressWarnings(\"serial\")\n+    public static ConfigKey<Collection<? extends AttributeSensor<?>>> SENSORS = ConfigKeys.newConfigKey(\n+            new TypeToken<Collection<? extends AttributeSensor<?>>>() {}, \n+            \"sensors\",\n+            \"The multiple sensors whose mapped values are to be re-published (with suffix \\\"mapped.public\\\"); \"\n+                    + \"if neither 'sensor' or 'sensors' is specified, defaults to 'mapAll'\");\n+\n+    public static ConfigKey<String> MAP_MATCHING = ConfigKeys.newStringConfigKey(\n+            \"mapMatching\",\n+            \"Whether to map all, based on a sensor naming convention (re-published with suffix \\\"mapped.public\\\"); \"\n+                    + \"if neither 'sensor' or 'sensors' is specified, defaults to matchin case-insensitive suffix of \"\n+                    + \"'port', 'uri', 'url' or 'endpoint' \",\n+            \"(?i).*(port|uri|url|endpoint)\");\n+\n+    @SuppressWarnings(\"serial\")\n+    public static ConfigKey<Function<? super String, String>> SENSOR_NAME_CONVERTER = ConfigKeys.newConfigKey(\n+            new TypeToken<Function<? super String, String>>() {},\n+            \"sensorNameConverter\",\n+            \"The converter to use, to map from the original sensor name to the re-published sensor name\",\n+            new SensorNameConverter(\"public\"));\n+\n+    public static final ConfigKey<PortForwardManager> PORT_FORWARD_MANAGER = ConfigKeys.newConfigKey(\n+            PortForwardManager.class, \n+            \"portForwardManager\",\n+            \"The PortForwardManager storing the port-mappings; if null, the global instance will be used\");\n+    \n+    public static class SensorNameConverter implements Function<String, String> {\n+        private final String network;\n+        \n+        public SensorNameConverter(String network) {\n+            this.network = network;\n+        }\n+        \n+        @Override\n+        public String apply(String input) {\n+            if (input == null) throw new NullPointerException(\"Sensor name must not be null\");\n+            String lowerInput = input.toLowerCase();\n+            if (lowerInput.endsWith(\"uri\")) {\n+                return input + \".mapped.\" + network;\n+            } else if (lowerInput.endsWith(\"url\")) {\n+                return input + \".mapped.\" + network;\n+            } else if (lowerInput.endsWith(\"endpoint\")) {\n+                return input + \".mapped.\" + network;\n+            } else if (lowerInput.endsWith(\"port\")) {\n+                String prefix = input.substring(0, input.length() - \"port\".length());\n+                if (prefix.endsWith(\".\")) prefix = prefix.substring(0, prefix.length() - 1);\n+                return prefix + \".endpoint.mapped.\" + network;","path":"core/src/main/java/org/apache/brooklyn/core/network/OnPublicNetworkEnricher.java","position":161,"original_position":163,"commit_id":"b3b89c87819a488f77d8ba91eea601a787a22b58","original_commit_id":"70aceb39311fbd9e18bdd3a3436b3f97e183b0f7","user":{"login":"ahgittin","id":496540,"avatar_url":"https://avatars.githubusercontent.com/u/496540?v=3","gravatar_id":"","url":"https://api.github.com/users/ahgittin","html_url":"https://github.com/ahgittin","followers_url":"https://api.github.com/users/ahgittin/followers","following_url":"https://api.github.com/users/ahgittin/following{/other_user}","gists_url":"https://api.github.com/users/ahgittin/gists{/gist_id}","starred_url":"https://api.github.com/users/ahgittin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahgittin/subscriptions","organizations_url":"https://api.github.com/users/ahgittin/orgs","repos_url":"https://api.github.com/users/ahgittin/repos","events_url":"https://api.github.com/users/ahgittin/events{/privacy}","received_events_url":"https://api.github.com/users/ahgittin/received_events","type":"User","site_admin":false},"body":"I prefer the simpler `.port` model as per the feature proposal doc.  Reasoning:\r\n* it *is* a port, on the address associated with the indicated network\r\n* simplicity and consistency --- `XXX` always becomes `XXX.mapped.NETWORK`\r\n* there are times when accessing in other entities that we will need the mapped host and mapped port individually, not the mapped endpoint (eg `ssh -p`)\r\n","created_at":"2016-06-09T09:55:53Z","updated_at":"2016-06-09T09:55:53Z","html_url":"https://github.com/apache/brooklyn-server/pull/177#discussion_r66412844","pull_request_url":"https://api.github.com/repos/apache/brooklyn-server/pulls/177","_links":{"self":{"href":"https://api.github.com/repos/apache/brooklyn-server/pulls/comments/66412844"},"html":{"href":"https://github.com/apache/brooklyn-server/pull/177#discussion_r66412844"},"pull_request":{"href":"https://api.github.com/repos/apache/brooklyn-server/pulls/177"}}},"pull_request":{"url":"https://api.github.com/repos/apache/brooklyn-server/pulls/177","id":72265622,"html_url":"https://github.com/apache/brooklyn-server/pull/177","diff_url":"https://github.com/apache/brooklyn-server/pull/177.diff","patch_url":"https://github.com/apache/brooklyn-server/pull/177.patch","issue_url":"https://api.github.com/repos/apache/brooklyn-server/issues/177","number":177,"state":"closed","locked":false,"title":"Adds PublicNetworkFaceEnricher","user":{"login":"aledsage","id":593113,"avatar_url":"https://avatars.githubusercontent.com/u/593113?v=3","gravatar_id":"","url":"https://api.github.com/users/aledsage","html_url":"https://github.com/aledsage","followers_url":"https://api.github.com/users/aledsage/followers","following_url":"https://api.github.com/users/aledsage/following{/other_user}","gists_url":"https://api.github.com/users/aledsage/gists{/gist_id}","starred_url":"https://api.github.com/users/aledsage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aledsage/subscriptions","organizations_url":"https://api.github.com/users/aledsage/orgs","repos_url":"https://api.github.com/users/aledsage/repos","events_url":"https://api.github.com/users/aledsage/events{/privacy}","received_events_url":"https://api.github.com/users/aledsage/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-01T22:55:04Z","updated_at":"2016-06-09T09:55:53Z","closed_at":"2016-06-08T20:23:44Z","merged_at":"2016-06-08T20:23:44Z","merge_commit_sha":"b3b89c87819a488f77d8ba91eea601a787a22b58","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/brooklyn-server/pulls/177/commits","review_comments_url":"https://api.github.com/repos/apache/brooklyn-server/pulls/177/comments","review_comment_url":"https://api.github.com/repos/apache/brooklyn-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/brooklyn-server/issues/177/comments","statuses_url":"https://api.github.com/repos/apache/brooklyn-server/statuses/b3b89c87819a488f77d8ba91eea601a787a22b58","head":{"label":"aledsage:feature/PublicNetworkFaceEnricher","ref":"feature/PublicNetworkFaceEnricher","sha":"b3b89c87819a488f77d8ba91eea601a787a22b58","user":{"login":"aledsage","id":593113,"avatar_url":"https://avatars.githubusercontent.com/u/593113?v=3","gravatar_id":"","url":"https://api.github.com/users/aledsage","html_url":"https://github.com/aledsage","followers_url":"https://api.github.com/users/aledsage/followers","following_url":"https://api.github.com/users/aledsage/following{/other_user}","gists_url":"https://api.github.com/users/aledsage/gists{/gist_id}","starred_url":"https://api.github.com/users/aledsage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aledsage/subscriptions","organizations_url":"https://api.github.com/users/aledsage/orgs","repos_url":"https://api.github.com/users/aledsage/repos","events_url":"https://api.github.com/users/aledsage/events{/privacy}","received_events_url":"https://api.github.com/users/aledsage/received_events","type":"User","site_admin":false},"repo":{"id":50909018,"name":"brooklyn-server","full_name":"aledsage/brooklyn-server","owner":{"login":"aledsage","id":593113,"avatar_url":"https://avatars.githubusercontent.com/u/593113?v=3","gravatar_id":"","url":"https://api.github.com/users/aledsage","html_url":"https://github.com/aledsage","followers_url":"https://api.github.com/users/aledsage/followers","following_url":"https://api.github.com/users/aledsage/following{/other_user}","gists_url":"https://api.github.com/users/aledsage/gists{/gist_id}","starred_url":"https://api.github.com/users/aledsage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aledsage/subscriptions","organizations_url":"https://api.github.com/users/aledsage/orgs","repos_url":"https://api.github.com/users/aledsage/repos","events_url":"https://api.github.com/users/aledsage/events{/privacy}","received_events_url":"https://api.github.com/users/aledsage/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aledsage/brooklyn-server","description":"Mirror of Apache Brooklyn server","fork":true,"url":"https://api.github.com/repos/aledsage/brooklyn-server","forks_url":"https://api.github.com/repos/aledsage/brooklyn-server/forks","keys_url":"https://api.github.com/repos/aledsage/brooklyn-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aledsage/brooklyn-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aledsage/brooklyn-server/teams","hooks_url":"https://api.github.com/repos/aledsage/brooklyn-server/hooks","issue_events_url":"https://api.github.com/repos/aledsage/brooklyn-server/issues/events{/number}","events_url":"https://api.github.com/repos/aledsage/brooklyn-server/events","assignees_url":"https://api.github.com/repos/aledsage/brooklyn-server/assignees{/user}","branches_url":"https://api.github.com/repos/aledsage/brooklyn-server/branches{/branch}","tags_url":"https://api.github.com/repos/aledsage/brooklyn-server/tags","blobs_url":"https://api.github.com/repos/aledsage/brooklyn-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aledsage/brooklyn-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aledsage/brooklyn-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/aledsage/brooklyn-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aledsage/brooklyn-server/statuses/{sha}","languages_url":"https://api.github.com/repos/aledsage/brooklyn-server/languages","stargazers_url":"https://api.github.com/repos/aledsage/brooklyn-server/stargazers","contributors_url":"https://api.github.com/repos/aledsage/brooklyn-server/contributors","subscribers_url":"https://api.github.com/repos/aledsage/brooklyn-server/subscribers","subscription_url":"https://api.github.com/repos/aledsage/brooklyn-server/subscription","commits_url":"https://api.github.com/repos/aledsage/brooklyn-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/aledsage/brooklyn-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/aledsage/brooklyn-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/aledsage/brooklyn-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/aledsage/brooklyn-server/contents/{+path}","compare_url":"https://api.github.com/repos/aledsage/brooklyn-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aledsage/brooklyn-server/merges","archive_url":"https://api.github.com/repos/aledsage/brooklyn-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aledsage/brooklyn-server/downloads","issues_url":"https://api.github.com/repos/aledsage/brooklyn-server/issues{/number}","pulls_url":"https://api.github.com/repos/aledsage/brooklyn-server/pulls{/number}","milestones_url":"https://api.github.com/repos/aledsage/brooklyn-server/milestones{/number}","notifications_url":"https://api.github.com/repos/aledsage/brooklyn-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aledsage/brooklyn-server/labels{/name}","releases_url":"https://api.github.com/repos/aledsage/brooklyn-server/releases{/id}","deployments_url":"https://api.github.com/repos/aledsage/brooklyn-server/deployments","created_at":"2016-02-02T09:23:44Z","updated_at":"2016-02-02T09:23:52Z","pushed_at":"2016-06-09T09:03:44Z","git_url":"git://github.com/aledsage/brooklyn-server.git","ssh_url":"git@github.com:aledsage/brooklyn-server.git","clone_url":"https://github.com/aledsage/brooklyn-server.git","svn_url":"https://github.com/aledsage/brooklyn-server","homepage":null,"size":29842,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"19e63db7909e517c50fca4afa16175c2375ad2d3","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":47246081,"name":"brooklyn-server","full_name":"apache/brooklyn-server","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/brooklyn-server","description":"Mirror of Apache Brooklyn server","fork":false,"url":"https://api.github.com/repos/apache/brooklyn-server","forks_url":"https://api.github.com/repos/apache/brooklyn-server/forks","keys_url":"https://api.github.com/repos/apache/brooklyn-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/brooklyn-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/brooklyn-server/teams","hooks_url":"https://api.github.com/repos/apache/brooklyn-server/hooks","issue_events_url":"https://api.github.com/repos/apache/brooklyn-server/issues/events{/number}","events_url":"https://api.github.com/repos/apache/brooklyn-server/events","assignees_url":"https://api.github.com/repos/apache/brooklyn-server/assignees{/user}","branches_url":"https://api.github.com/repos/apache/brooklyn-server/branches{/branch}","tags_url":"https://api.github.com/repos/apache/brooklyn-server/tags","blobs_url":"https://api.github.com/repos/apache/brooklyn-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/brooklyn-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/brooklyn-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/brooklyn-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/brooklyn-server/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/brooklyn-server/languages","stargazers_url":"https://api.github.com/repos/apache/brooklyn-server/stargazers","contributors_url":"https://api.github.com/repos/apache/brooklyn-server/contributors","subscribers_url":"https://api.github.com/repos/apache/brooklyn-server/subscribers","subscription_url":"https://api.github.com/repos/apache/brooklyn-server/subscription","commits_url":"https://api.github.com/repos/apache/brooklyn-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/brooklyn-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/brooklyn-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/brooklyn-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/brooklyn-server/contents/{+path}","compare_url":"https://api.github.com/repos/apache/brooklyn-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/brooklyn-server/merges","archive_url":"https://api.github.com/repos/apache/brooklyn-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/brooklyn-server/downloads","issues_url":"https://api.github.com/repos/apache/brooklyn-server/issues{/number}","pulls_url":"https://api.github.com/repos/apache/brooklyn-server/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/brooklyn-server/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/brooklyn-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/brooklyn-server/labels{/name}","releases_url":"https://api.github.com/repos/apache/brooklyn-server/releases{/id}","deployments_url":"https://api.github.com/repos/apache/brooklyn-server/deployments","created_at":"2015-12-02T08:00:06Z","updated_at":"2016-05-30T11:46:29Z","pushed_at":"2016-06-09T09:05:09Z","git_url":"git://github.com/apache/brooklyn-server.git","ssh_url":"git@github.com:apache/brooklyn-server.git","clone_url":"https://github.com/apache/brooklyn-server.git","svn_url":"https://github.com/apache/brooklyn-server","homepage":null,"size":29999,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":"git://git.apache.org/brooklyn-server.git","open_issues_count":14,"forks":32,"open_issues":14,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/brooklyn-server/pulls/177"},"html":{"href":"https://github.com/apache/brooklyn-server/pull/177"},"issue":{"href":"https://api.github.com/repos/apache/brooklyn-server/issues/177"},"comments":{"href":"https://api.github.com/repos/apache/brooklyn-server/issues/177/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/brooklyn-server/pulls/177/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/brooklyn-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/brooklyn-server/pulls/177/commits"},"statuses":{"href":"https://api.github.com/repos/apache/brooklyn-server/statuses/b3b89c87819a488f77d8ba91eea601a787a22b58"}}}}
{"actor":{"display_login":"ahgittin"}}