Return-Path: X-Original-To: apmail-flink-dev-archive@www.apache.org Delivered-To: apmail-flink-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4612618039 for ; Fri, 17 Jul 2015 12:47:27 +0000 (UTC) Received: (qmail 2877 invoked by uid 500); 17 Jul 2015 12:47:27 -0000 Delivered-To: apmail-flink-dev-archive@flink.apache.org Received: (qmail 2808 invoked by uid 500); 17 Jul 2015 12:47:27 -0000 Mailing-List: contact dev-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list dev@flink.apache.org Received: (qmail 2797 invoked by uid 99); 17 Jul 2015 12:47:27 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2015 12:47:27 +0000 Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 9AB7B1A0256 for ; Fri, 17 Jul 2015 12:47:26 +0000 (UTC) Received: by lbbyj8 with SMTP id yj8so60637884lbb.0 for ; Fri, 17 Jul 2015 05:47:25 -0700 (PDT) X-Gm-Message-State: ALoCoQklSLhf1GovIyS/qxs2FVZXVjL/1C6Q2BTxF/ibVecieV5xc2oDZEeDJGxjSvtHbe+Bsu8E X-Received: by 10.113.10.135 with SMTP id ea7mr14380895lbd.65.1437137245203; Fri, 17 Jul 2015 05:47:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.78.195 with HTTP; Fri, 17 Jul 2015 05:47:05 -0700 (PDT) In-Reply-To: References: <55A7C37C.6020603@informatik.hu-berlin.de> From: Maximilian Michels Date: Fri, 17 Jul 2015 14:47:05 +0200 Message-ID: Subject: Re: [DISCUSS] Unifying client code To: dev@flink.apache.org Content-Type: multipart/alternative; boundary=001a11347d2cfe85b7051b11966c --001a11347d2cfe85b7051b11966c Content-Type: text/plain; charset=UTF-8 I'm also in favor of restructuring the Client. Some of this work has already been undergone in this pull request: https://github.com/apache/flink/pull/858 It would be great if we could sync such that we do the restructuring once the pull request has been merged. We can probably get it in next week. On Fri, Jul 17, 2015 at 1:52 PM, Aljoscha Krettek wrote: > +1 > Very good idea > > > On Thu, 16 Jul 2015 at 17:57 Fabian Hueske wrote: > > > Yes definitely. > > The client and submission code is spread out over multiple classes and > > different clients follow different paths. This is a bit messy right now, > > IMO. > > A big +1 to unify and restructure the client. > > > > 2015-07-16 17:52 GMT+02:00 Till Rohrmann : > > > > > I like the idea to have a single point of access. That would improve > > > maintainability and makes the code easier to understand. Thus +1. > > > > > > On Thu, Jul 16, 2015 at 4:45 PM, Matthias J. Sax < > > > mjsax@informatik.hu-berlin.de> wrote: > > > > > > > Hi, > > > > > > > > I just had a look into CliFrontend and Client and it seems to me, > that > > > > there is no uniform design. > > > > > > > > For example, CliFrontend uses Client to execute "run" and "info" > > > > command. However, for "cancel" and "list" it does not (because > > > > org.apache.flink.client.program.Client) lacks those methods. > > > > > > > > I would recommend to extend Client and adapt CliFrontend. > > > > > > > > There is already a pull request for "cancel": > > > > https://github.com/apache/flink/pull/642 > > > > However, this PR does not adapt CliFrontend and I am not sure if it > > will > > > > be finished at all. A three week old discussion resulted in no > > progress. > > > > > > > > In the current pull request for the new STOP signal, there is also > some > > > > mess with this regard. CliFrontend does not use Client.stop() -> I > will > > > > update this soon (this issues was the trigger to discover this > "mess"), > > > > or include those changes into this work (if we start it). > > > > > > > > Additionally, we might want to uniform WebClient and job manager > > > > WebFrontend, too. I have an open PR that changed WebClient to use > > > > CliFrontend to avoid code duplication. But now, this seems not the > > right > > > > way to go. JobManagerInfoServlet duplicate this code, too. > > > > > > > > I think Client should be the unique class that offers methods for all > > > > request and is used by all other clients. > > > > > > > > What do you think about this? > > > > > > > > > > > > -Matthias > > > > > > > > > > > > > > --001a11347d2cfe85b7051b11966c--