Link: https://issues.apache.org/jira/browse/SLIDER-481?focusedCommentId=14168887&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14168887
Currently, exports are published using the same mechanism that is used to published configuration. This has some drawbacks: * exports may have multiple line items - e.g. a set of peer services all exposing an end point with the same "name" * exports may need to be associated with identifier/tag per container, update time per entry, even valid until time per entry * exports do not fit well into all formatting options for configs Proposal: Introduce a separate path (REST) for exports in parallel to the path to configurations. Example: org.apache.slider.publisher.exports http://c6401.ambari.apache.org:60815/ws/v1/slider/publisher/exports The child elements to the above are export groups. An export group is a logical group of exports. Example: "quicklinks": { "description": "quick links for app", "updated": 1413160329232, "updatedTime": "Mon Oct 13 00:32:09 UTC 2014", "entries": { }, "empty": false } Each sub-entry will refer to an exported item which may have one or more entries. Example: http://c6401.ambari.apache.org:60815/ws/v1/slider/publisher/exports /quicklinks - *value* - exported value - *containerId* - id of the container that exported it - *tag* - (optional) tag associated with the container (SLIDER-463) - *level* - applicable to a component or the whole application - *updateTime* - when was it last updated - *validUntil* - (optional) till when the entry is valid "entries": { "quorum_host_port": [ { "value": "http://c6401.ambari.apache.org:8342/api", "containerId": "container_1412837132444_0012_01_000002", "tag": "1", "level": "component", "updateTime": "Mon Oct 13 00:32:09 UTC 2014", "validUntil": "" }, { "value": "http://c6402.ambari.apache.org:28551/api", "containerId": "container_1412837132444_0012_01_000004", "tag": "2", "level": "component", "updateTime": "Mon Oct 13 00:36:23 UTC 2014", "validUntil": "" } ], "ganglia_ui":[ { "value": "http://c6403.ambari.apache.org/ganglia/?c=App1", "containerId": "", "tag": "", "level": "application", "updateTime": "Mon Oct 13 00:32:09 UTC 2014", "validUntil": "" } ] } Let me know if you have any feedback or suggestion - feel free to comment on the JIRA (https://issues.apache.org/jira/browse/SLIDER-481) thanks -Sumit -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.
