GitHub user tillrohrmann opened a pull request: https://github.com/apache/flink/pull/4987
[FLINK-8029] Create WebMonitorEndpoint ## What is the purpose of the change The WebMonitorEndpoint is the common rest endpoint used for serving the web frontend REST calls. It will be used by the Dispatcher and the JobMaster to fuel the web frontend. ## Verifying this change This change is a trivial rework / code cleanup without any test coverage. ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): (no) - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no) - The serializers: (no) - The runtime per-record code paths (performance sensitive): (no) - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no) - The S3 file system connector: (no) ## Documentation - Does this pull request introduce a new feature? (no) - If yes, how is the feature documented? (not applicable) You can merge this pull request into a Git repository by running: $ git pull https://github.com/tillrohrmann/flink webMonitorEndpoint Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/4987.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #4987 ---- commit 18d8d1af433715a24c2d2e354d8dcf2efb30c49d Author: Till Rohrmann <trohrm...@apache.org> Date: 2017-11-04T13:56:11Z [FLINK-8000] Sort Rest handler URLS in RestServerEndpoint Introduce special RestHandlerUrlComparator to sort REST URLs such that URLs with path parameters are sorted after those without or fewer. E.g. the following order would be established /jobs /jobs/overview /jobs/:jobid /jobs/:jobid/config /:* commit bdc5d0eaf803475eb9fc550be3ab59cd176c2894 Author: Till Rohrmann <trohrm...@apache.org> Date: 2017-11-06T17:48:53Z [FLINK-8024] Let ClusterOverviewHandler directly extend from AbstractRestHandler commit 2ddfa4e57b03fa3e42d60ae8da7b4bbc6b24e777 Author: Till Rohrmann <trohrm...@apache.org> Date: 2017-11-06T17:56:01Z [FLINK-8025] Let DashboardConfigHandler directly extend AbstractRestHandler commit 03651e6cd66fc173a6758e884e6b9bfdbba3dfcb Author: Till Rohrmann <trohrm...@apache.org> Date: 2017-11-07T09:56:33Z [FLINK-8026] Let ClusterConfigHandler directly extend AbstractRestHandler commit 16ec9f41ab26cc8a4f11bbc9ab6c7eb46ad4c8d8 Author: Till Rohrmann <trohrm...@apache.org> Date: 2017-11-07T10:04:10Z [FLINK-8027] Generalize existing rest handlers to work with an arbitrary RestfulGateway By letting the existing REST handlers work with an arbitrary RestfulGateway, they can be used by the Dispatcher as well as the JobMaster, once it implements the RestfulGateway. commit b99f8b83c1331d2e5f5d8fb855a9889364fc4118 Author: Till Rohrmann <trohrm...@apache.org> Date: 2017-11-07T10:08:40Z [hotfix] Rename RestfulGateway#requestJobDetails into requestMultipleJobDetails to avoid name conflicts with JobMasterGateway commit f1e4f4cbc5038272e16601634b844145dfd2a095 Author: Till Rohrmann <trohrm...@apache.org> Date: 2017-11-07T13:59:28Z [hotfix] Pass in Rest address to Dispatcher as nullable String commit b4d402351465526acfd4aa63f4774c7421eb8515 Author: Till Rohrmann <trohrm...@apache.org> Date: 2017-11-07T13:37:06Z [FLINK-8028] Let JobMaster implement RestfulGateway This commit lets the JobMaster implement the RestfulGateway. That way, the JobMaster can be used in combination with the existing REST handlers. commit c8c51c76244cf1aa2e3c1475b48907068037cdfa Author: Till Rohrmann <trohrm...@apache.org> Date: 2017-11-07T15:51:25Z [FLINK-8029] Create WebMonitorEndpoint The WebMonitorEndpoint is the common rest endpoint used for serving the web frontend REST calls. It will be used by the Dispatcher and the JobMaster to fuel the web frontend. ---- ---