flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-7856) Port JobVertexBackPressureHandler to REST endpoint
Date Tue, 07 Nov 2017 09:04:00 GMT

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

ASF GitHub Bot commented on FLINK-7856:
---------------------------------------

Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4893#discussion_r149304998
  
    --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/JobVertexBackPressureInfo.java
---
    @@ -0,0 +1,133 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.flink.runtime.rest.messages;
    +
    +import org.apache.flink.runtime.rest.handler.job.JobVertexBackPressureHandler;
    +
    +import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonCreator;
    +import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonProperty;
    +
    +import java.util.List;
    +import java.util.Objects;
    +
    +/**
    + * Response type of the {@link JobVertexBackPressureHandler}.
    + */
    +public class JobVertexBackPressureInfo implements ResponseBody {
    +
    +	public static final String FIELD_NAME_STATUS = "status";
    +	public static final String FIELD_NAME_BACKPRESSURE_LEVEL = "backpressure-level";
    +	public static final String FIELD_NAME_END_TIMESTAMP = "end-timestamp";
    +	public static final String FIELD_NAME_SUBTASKS = "subtasks";
    +
    +	@JsonProperty(FIELD_NAME_STATUS)
    +	private final String status;
    +
    +	@JsonProperty(FIELD_NAME_BACKPRESSURE_LEVEL)
    +	private final String backpressureLevel;
    --- End diff --
    
    Same here, this should be an enum.


> Port JobVertexBackPressureHandler to REST endpoint
> --------------------------------------------------
>
>                 Key: FLINK-7856
>                 URL: https://issues.apache.org/jira/browse/FLINK-7856
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Distributed Coordination, REST, Webfrontend
>            Reporter: Fang Yong
>            Assignee: Fang Yong
>
> Port JobVertexBackPressureHandler to REST endpoint



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message