Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-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 9107517BB1 for ; Fri, 10 Oct 2014 18:23:43 +0000 (UTC) Received: (qmail 46532 invoked by uid 500); 10 Oct 2014 18:23:43 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 46501 invoked by uid 500); 10 Oct 2014 18:23:43 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 46487 invoked by uid 99); 10 Oct 2014 18:23:43 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2014 18:23:43 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id F14AE1DDE61; Fri, 10 Oct 2014 18:23:38 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============5920576877769563849==" MIME-Version: 1.0 Subject: Re: Review Request 26540: Jobs View: /resources/status should provide view parameters From: "Tom Beerbower" To: "Srimanth Gunturi" , "Tom Beerbower" Cc: "Alejandro Fernandez" , "Ambari" Date: Fri, 10 Oct 2014 18:23:38 -0000 Message-ID: <20141010182338.24817.7488@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Tom Beerbower" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/26540/ X-Sender: "Tom Beerbower" References: <20141010100251.24818.8708@reviews.apache.org> In-Reply-To: <20141010100251.24818.8708@reviews.apache.org> Reply-To: "Tom Beerbower" X-ReviewRequest-Repository: ambari --===============5920576877769563849== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Oct. 10, 2014, 10:02 a.m., Tom Beerbower wrote: > > Looks good. A couple of comments. > > > > Please make sure to doc all public methods, classes and interfaces. > > > > I'm still not sure about the name 'status' for a resource that is basically a collection of static properties. To me 'status' is something that can change (i.e. GOOD to BAD). It's up to you. I'm okay with it if it makes sense for the JOBS view. > > Alejandro Fernandez wrote: > I see your point. I'm following the same precedence that the Slider view has. I can call it "static", "properties", or "parameters", unless we may expect to put other things in there in the future. > > Tom Beerbower wrote: > It just seemed strange to me but if there is precidence or it makes sense to a JOBS view user then that's fine. Your call. -- precedents -- - Tom ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/26540/#review56114 ----------------------------------------------------------- On Oct. 10, 2014, 4:46 a.m., Alejandro Fernandez wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/26540/ > ----------------------------------------------------------- > > (Updated Oct. 10, 2014, 4:46 a.m.) > > > Review request for Ambari, Srimanth Gunturi and Tom Beerbower. > > > Bugs: AMBARI-7719 > https://issues.apache.org/jira/browse/AMBARI-7719 > > > Repository: ambari > > > Description > ------- > > Jobs view should provide the view parameters as internal resource. For this, we need API http://server:8080/api/v1/views/JOBS/versions/1.0.0/instances/sv1/resources/status which will provide below response. > parameters: { > "yarn.ats.url" : "http://server:8188", > "yarn.resourcemanager.url" : "http://server:8088" > } > > > Diffs > ----- > > contrib/views/jobs/pom.xml f2173e3 > contrib/views/jobs/src/main/java/org/apache/ambari/view/jobs/ViewController.java PRE-CREATION > contrib/views/jobs/src/main/java/org/apache/ambari/view/jobs/ViewControllerImpl.java PRE-CREATION > contrib/views/jobs/src/main/java/org/apache/ambari/view/jobs/ViewStatus.java PRE-CREATION > contrib/views/jobs/src/main/java/org/apache/ambari/view/jobs/rest/ViewStatusResource.java PRE-CREATION > contrib/views/jobs/src/main/resources/view.xml 6dd5ee6 > > Diff: https://reviews.apache.org/r/26540/diff/ > > > Testing > ------- > > Deployed the view and ensured that could access the URL http://server:8080/api/v1/views/JOBS/versions/1.0.0/instances/sv1/resources/status which displayed > parameters: { > "yarn.ats.url" : "http://server:8188", > "yarn.resourcemanager.url" : "http://server:8088" > } > > > Thanks, > > Alejandro Fernandez > > --===============5920576877769563849==--