flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bowen Li (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-7694) Port JobMetricsHandler to new REST handler
Date Wed, 27 Sep 2017 04:19:00 GMT

    [ https://issues.apache.org/jira/browse/FLINK-7694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16181953#comment-16181953

Bowen Li commented on FLINK-7694:

[~till.rohrmann] Hi Till, I have done some research on how to accomplish this migration. To
make sure I'm on the right path, I want to discuss with you my rough understanding and ask
some questions about the code architecture.

Here're the steps I think I need to do:

1. add class 

public class JobIDPathParameter extends MessagePathParameter<JobID>

2. add class

public class JobIDMessageParameters extends MessageParameters {
	private final JobIDPathParameter jobIDPathParameter;

3. add class 

public class JobMetricsOverview implements ResponseBody {
	public static final String FIELD_NAME_METRICS = "metrics";

	private final  Map<String, String> metrics;


4. change {{JobMetricsHandler}} 's signature to 

public class JobMetricsHandler extends AbstractMetricsHandler implements LegacyRestHandler<DispatcherGateway,
JobMetricsOverview, JobIDMessageParameters>


Do the above steps make sense?

What I haven't figured out are: where is {{JobMetricsOverview}} (the ResponseBody) consumed?
Is there an example of integration test?

> Port JobMetricsHandler to new REST handler
> ------------------------------------------
>                 Key: FLINK-7694
>                 URL: https://issues.apache.org/jira/browse/FLINK-7694
>             Project: Flink
>          Issue Type: Sub-task
>          Components: REST, Webfrontend
>            Reporter: Bowen Li
>            Assignee: Bowen Li
>             Fix For: 1.4.0

This message was sent by Atlassian JIRA

View raw message