Repository: brooklyn-docs Updated Branches: refs/heads/master d0376bdaa -> 3b99db2da
Updating port inferencing documentation Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/ad61cbca Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/ad61cbca Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/ad61cbca Branch: refs/heads/master Commit: ad61cbcae87c9e7f964e1769aa20edb34b837d8d Parents: 7c41f83 Author: Kiuby88 <kiuby88.programm...@gmail.com> Authored: Fri May 13 14:37:09 2016 +0200 Committer: Kiuby88 <kiuby88.programm...@gmail.com> Committed: Fri May 13 14:37:09 2016 +0200 ---------------------------------------------------------------------- guide/yaml/custom-entities.md | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/ad61cbca/guide/yaml/custom-entities.md ---------------------------------------------------------------------- diff --git a/guide/yaml/custom-entities.md b/guide/yaml/custom-entities.md index 9698aa8..69d0d02 100644 --- a/guide/yaml/custom-entities.md +++ b/guide/yaml/custom-entities.md @@ -75,6 +75,10 @@ In addition, any such config key will be opened, irrespective of whether it matches the `inboundPorts.configRegex`. To prevent any inferencing of ports to open, you can set the config `inboundPorts.autoInfer` to `false`. +Furthermore, the port inferencing capability takes in account static `ConfigKey` fields that +are defined on any Entity sub-class. So, `ConfigKey` fields that are based on `PortRanges` type will +be also included as required open ports. + Note that in the example above, `netcat.port` must be specified in a `brooklyn.config` block. This block can be used to hold any config (including for example the `launch.command`), but for convenience Brooklyn allows config keys declared on the underlying type