Return-Path: X-Original-To: apmail-airavata-dev-archive@www.apache.org Delivered-To: apmail-airavata-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 A0A7CD3C6 for ; Tue, 5 Mar 2013 03:52:24 +0000 (UTC) Received: (qmail 60244 invoked by uid 500); 5 Mar 2013 03:52:23 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 60141 invoked by uid 500); 5 Mar 2013 03:52:22 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Received: (qmail 60126 invoked by uid 99); 5 Mar 2013 03:52:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Mar 2013 03:52:22 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of danushka.menikkumbura@gmail.com designates 209.85.216.53 as permitted sender) Received: from [209.85.216.53] (HELO mail-qa0-f53.google.com) (209.85.216.53) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Mar 2013 03:52:15 +0000 Received: by mail-qa0-f53.google.com with SMTP id z4so1659485qan.19 for ; Mon, 04 Mar 2013 19:51:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=A5UpWnWmADEDMZg7amqeQk+6EO2O6CQV1J8HLgQLYKo=; b=Io5BQz4kfFdcTMM1QT0GbscgPsndckhKuSkIsaj34ZLgKS5FiNrsacUbJBQ2yGRh3A Jt8qOLPLgFFLpe3r9noom0MlnEWztgAly5vEkfATL/R9V+crHP/Pd0ugy7GROvvQFpN/ 0LWKXV3sgE3Q4uiSGBI+i91V6DAnCTNdr6oLFdKLmnaJLoJT9Pv6J1x4iSpYtBlxVHiT XFij0yTEKuVU3ybhyX2Buk1kA2obqmo9A+Pj+PeM1FS3h2USXzi9XtOsxXTtiLQLcc7A 9z1fV+JLOpz3iZQbNYh2VgPzsjaMgDUt4aRfeaZKeonK7/0W15tbv1mNEB+4JJGtRvpq Wifw== X-Received: by 10.224.33.136 with SMTP id h8mr36358696qad.7.1362455514542; Mon, 04 Mar 2013 19:51:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.49.1.73 with HTTP; Mon, 4 Mar 2013 19:51:34 -0800 (PST) In-Reply-To: References: From: Danushka Menikkumbura Date: Tue, 5 Mar 2013 09:21:34 +0530 Message-ID: Subject: Re: Decoupling GFac Providers To: dev@airavata.apache.org Content-Type: multipart/alternative; boundary=20cf3074d22cf77dc804d7256411 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3074d22cf77dc804d7256411 Content-Type: text/plain; charset=ISO-8859-1 Amila, Correct. When you define the class name in your schema definition, it actually goes into the HostDescriptionType. Thanks, Danushka On Tue, Mar 5, 2013 at 8:44 AM, Amila Jayasekara wrote: > On Mon, Mar 4, 2013 at 9:56 PM, Danushka Menikkumbura > wrote: > > Hi, > > > > As we have discussed on a separate thread it is very beneficial to have > > gfac providers decoupled from the core so that gateway developers can > write > > their own providers and seamlessly integrate them with the Airavata > > runtime. I suggested we have a separate plugin architecture to facilitate > > that but it looks as if a simple and neat approach would be to enable > using > > dynamically loaded providers in the scheduler without having a separate > > plugin manager to do that. > > > > In order to do that, we need to let the scheduler know the > fully-qualified > > class names of providers. I suggest we have the provider class name > defined > > in the host description. > > Hi Danushka, > > The provider class name is an implementation detail in GFac. I think > we should not expose that to API. User does not need to know about > class names implementing appropriate providers. Therefore I do not > think HostDescriptor is the right place to put fully qualified class > name of provider. > > Further I believe the fully qualified class name should be associated > with org.apache.airavata.schemas.gfac.HostDescriptionType. > > HostDescriptionType has following derivations; > > org.apache.airavata.schemas.gfac.GlobusHostType > org.apache.airavata.schemas.gfac.Ec2HostType > org.apache.airavata.schemas.gfac.GsisshHostType > org.apache.airavata.schemas.gfac.UnicoreHostType > > Thanks > Amila > > > > > WDYT? > > > > Thanks, > > Danushka > --20cf3074d22cf77dc804d7256411--