GitHub user bowenli86 opened a pull request:
https://github.com/apache/flink/pull/4757
[Flink 7694][REST][Webfrontend]Port JobMetricsHandler to new REST handler
## What is the purpose of the change
Port JobMetricsHandler to new REST handler
## Brief change log
- added `JobMetricEntry`, `JobMetricEntryList`, `JobMetricId`,
`JobMetricIdList` for json serialization. They all implement
`JobMetricsOverview` so the `LegacyRestHandler` can have a single type of
`ResponseBody`
- implemented `JobMetricsHandler#handleRequests()`
- added `JobMetricsHeaders`
## Verifying this change
This change added tests and can be verified as follows:
- Added unit tests for marshalling `JobMetricIdList` and
`JobMetricEntryList`
## Does this pull request potentially affect one of the following parts:
- Anything that affects deployment or recovery: JobManager (and its
components)
## Documentation
- Does this pull request introduce a new feature? (yes)
- 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/bowenli86/flink FLINK-7694
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/4757.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 #4757
----
commit bc4aa8c3d9b057a6d35b620eb8e00048137e9361
Author: Bowen Li <[email protected]>
Date: 2017-09-27T22:30:02Z
[FLINK-7724] add extra metrics to MetricStoreTest.setupStore
commit d223444eba17c620e8c45c372a7b2e6fafdfd169
Author: Bowen Li <[email protected]>
Date: 2017-09-27T22:39:17Z
delete unrelated files
commit 4ac192c96a1b905ecc92c6bcb369ca252b511ae5
Author: Bowen Li <[email protected]>
Date: 2017-09-28T04:04:30Z
Merge branch 'FLINK-7724' into FLINK-7694
commit 2815e66d511e72f11766bb516a9851339e379c5e
Author: Bowen Li <[email protected]>
Date: 2017-09-28T05:25:04Z
add more classes
commit c5716edb64ed7f7ff6dda7bf48b2f90e9a80cd07
Author: Bowen Li <[email protected]>
Date: 2017-09-28T06:09:20Z
[FLINK-7660] Support sideOutput in ProcessAllWindowFunction
commit 04a2b59bf45c62318a20d897b254fc376d58abca
Author: Bowen Li <[email protected]>
Date: 2017-09-28T16:25:31Z
checkstyle
commit 0e761a8e4a6c606c89e4bc5669c777a20e467183
Author: Bowen Li <[email protected]>
Date: 2017-09-28T06:09:20Z
[FLINK-7660] Support sideOutput in ProcessAllWindowFunction
commit 9e7c6cc3f86570938feb0ded48b204d4f320cb69
Author: Bowen Li <[email protected]>
Date: 2017-09-28T21:26:28Z
merge master
commit ac99b8f779f1b4275a1ee6df1527e406495c61c6
Author: Bowen Li <[email protected]>
Date: 2017-09-29T05:11:39Z
add more classes
commit 1402267e416916496a60c58bda7f64612d2e2ea5
Author: Bowen Li <[email protected]>
Date: 2017-09-29T05:34:47Z
add JobIDQueryParameter
commit bc4fc397e1fa4cc48e74d5b2157be2a8cf5f37ee
Author: Bowen Li <[email protected]>
Date: 2017-09-29T06:43:51Z
checkstyle
commit 31a73f3c86d6afa2f4693e9d56bc709fdfb42e19
Author: Bowen Li <[email protected]>
Date: 2017-09-29T07:28:51Z
add apache license to files
commit 2ad3065b237c9ecb4db67a486da48e621097470e
Author: Bowen Li <[email protected]>
Date: 2017-09-29T07:34:40Z
checkstyle
commit 99ec7363f7f61fa1fae201c4fd470d0fa2d6f5b2
Author: Bowen Li <[email protected]>
Date: 2017-09-28T06:09:20Z
[FLINK-7660] Support sideOutput in ProcessAllWindowFunction
commit 21e1185ddc999b13164317f2291ff02e7660e619
Author: Bowen Li <[email protected]>
Date: 2017-09-29T18:49:33Z
add JobMetricsHeaders
commit 1981e24373f8a849c2817387ce806103ebfcb3c7
Author: Bowen Li <[email protected]>
Date: 2017-09-29T18:51:29Z
add apache license
commit 76204dbfc0ade9fd84abbff417b388b92b73827e
Author: Bowen Li <[email protected]>
Date: 2017-09-29T23:09:35Z
checkstyle
commit 1d3ebfa0781ee3be1a86e024fc40d6bdd59217f5
Author: Bowen Li <[email protected]>
Date: 2017-09-29T23:34:01Z
fix class
commit 1d9d113cdd577bfbfabba78e887f99f8b6aa2c51
Author: Bowen Li <[email protected]>
Date: 2017-09-29T23:34:48Z
remove extra lines
commit 9518958a15248cf25bcc1728d02c7e16c8491d81
Author: Bowen Li <[email protected]>
Date: 2017-09-29T23:36:14Z
remove unused classes
commit 28ab3df8c53cc53ce9b8de95e5fd6be3308649d9
Author: Bowen Li <[email protected]>
Date: 2017-10-02T03:36:26Z
fix JobVertexMetricsHandlerTest
commit 0fe6cd335e98f6ad92cc543053761d72bea6c033
Author: Bowen Li <[email protected]>
Date: 2017-10-02T03:39:56Z
merge master
commit 71089554ccf229b8396c622eea7b55ec7252a670
Author: Bowen Li <[email protected]>
Date: 2017-10-02T03:59:56Z
revert unrelated changes
commit 39efcbca33685bb84fb110942eefa501d573429e
Author: Bowen Li <[email protected]>
Date: 2017-10-02T05:01:43Z
refactor unit tests
----
---