You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airavata.apache.org by Bhathiya Jayasekara <to...@gmail.com> on 2012/06/26 15:26:25 UTC
Need a clarification on getDeploymentDescription() method in Registry API
Hi devs,
I have a confusion about "*getDeploymentDescription(String serviceId,
String hostId)" *method in AiravataJCRRegistry.java. In this method, giving
a Service_Id and a Host_Id we can get a Application Description. (It
returns the first child if there are multiples)
My question is aren't there any use cases where a particular Service and a
Host can have multiple Application Descriptions? If the answer is No,
everything is fine, otherwise it is confusing.
Thank you.
-- Bhathiya
Re: Need a clarification on getDeploymentDescription() method in
Registry API
Posted by Bhathiya Jayasekara <to...@gmail.com>.
Hi Lahiru,
Thanks for the explanation. It makes sense now. Since I wasn't much aware
of where to use this method I was trying to imagine a usecase. :) Now all
is clear.
Thank you.
--Bhathiya
On Tue, Jun 26, 2012 at 10:04 PM, Lahiru Gunathilake <gl...@gmail.com>wrote:
> Hi Bhathiya,
>
> In Airavata execution first thing which comes is the service name, so its
> like user give the service name and ask to execute it, so from the service
> name we pick the service then we pick other descriptors, so ideally there
> couldn't be usecases where we want to get a deployment descriptors directly
> unless to show all the deployment descriptors in the system.
>
> Do you have any kind of a usecase for this ?
>
> Lahiru
>
> On Tue, Jun 26, 2012 at 10:26 AM, Bhathiya Jayasekara <
> tobhathiyaj@gmail.com
> > wrote:
>
> > Hi Lahiru,
> >
> > Thank you for the reply. I understand what you say. But I have some
> > questions.
> >
> > What do you suggest, is it fine to keep the current implementation of
> above
> > method which returns the first child always or should it be changed?
> >
> > Why isn't there a method to get deployment description by name, which is
> > more obvious and clear than current implementation?
> >
> > Thank you.
> >
> > -- Bhathiya
> >
> > On Tue, Jun 26, 2012 at 7:37 PM, Lahiru Gunathilake <glahiru@gmail.com
> > >wrote:
> >
> > > Hi Bhathiya,
> > >
> > > There could be usecases, but very likely rare.. If users wants to
> change
> > > something we recommend them not to create an application descriptor for
> > > each and every configuratin change in its application descriptor. So
> the
> > > recommended way is it have one application descriptor and change the
> > > configuration dynamically by putting required value in the request
> > > header(WorkflowExectutionContextHeader).
> > >
> > > So we give high precedence to incoming request scheduling
> configuration,
> > so
> > > if you change any value there in the request we simply ignore the value
> > you
> > > have in the registry and use the header configuration for that
> particular
> > > request.
> > >
> > > Hope this helps !
> > >
> > > Lahiru
> > > On Tue, Jun 26, 2012 at 9:26 AM, Bhathiya Jayasekara
> > > <to...@gmail.com>wrote:
> > >
> > > > Hi devs,
> > > >
> > > > I have a confusion about "*getDeploymentDescription(String serviceId,
> > > > String hostId)" *method in AiravataJCRRegistry.java. In this method,
> > > giving
> > > > a Service_Id and a Host_Id we can get a Application Description. (It
> > > > returns the first child if there are multiples)
> > > >
> > > > My question is aren't there any use cases where a particular Service
> > and
> > > a
> > > > Host can have multiple Application Descriptions? If the answer is No,
> > > > everything is fine, otherwise it is confusing.
> > > >
> > > > Thank you.
> > > >
> > > > -- Bhathiya
> > > >
> > >
> > >
> > >
> > > --
> > > System Analyst Programmer
> > > PTI Lab
> > > Indiana University
> > >
> >
> >
> >
> > --
> >
>
>
>
> --
> System Analyst Programmer
> PTI Lab
> Indiana University
>
Re: Need a clarification on getDeploymentDescription() method in
Registry API
Posted by Lahiru Gunathilake <gl...@gmail.com>.
Hi Bhathiya,
In Airavata execution first thing which comes is the service name, so its
like user give the service name and ask to execute it, so from the service
name we pick the service then we pick other descriptors, so ideally there
couldn't be usecases where we want to get a deployment descriptors directly
unless to show all the deployment descriptors in the system.
Do you have any kind of a usecase for this ?
Lahiru
On Tue, Jun 26, 2012 at 10:26 AM, Bhathiya Jayasekara <tobhathiyaj@gmail.com
> wrote:
> Hi Lahiru,
>
> Thank you for the reply. I understand what you say. But I have some
> questions.
>
> What do you suggest, is it fine to keep the current implementation of above
> method which returns the first child always or should it be changed?
>
> Why isn't there a method to get deployment description by name, which is
> more obvious and clear than current implementation?
>
> Thank you.
>
> -- Bhathiya
>
> On Tue, Jun 26, 2012 at 7:37 PM, Lahiru Gunathilake <glahiru@gmail.com
> >wrote:
>
> > Hi Bhathiya,
> >
> > There could be usecases, but very likely rare.. If users wants to change
> > something we recommend them not to create an application descriptor for
> > each and every configuratin change in its application descriptor. So the
> > recommended way is it have one application descriptor and change the
> > configuration dynamically by putting required value in the request
> > header(WorkflowExectutionContextHeader).
> >
> > So we give high precedence to incoming request scheduling configuration,
> so
> > if you change any value there in the request we simply ignore the value
> you
> > have in the registry and use the header configuration for that particular
> > request.
> >
> > Hope this helps !
> >
> > Lahiru
> > On Tue, Jun 26, 2012 at 9:26 AM, Bhathiya Jayasekara
> > <to...@gmail.com>wrote:
> >
> > > Hi devs,
> > >
> > > I have a confusion about "*getDeploymentDescription(String serviceId,
> > > String hostId)" *method in AiravataJCRRegistry.java. In this method,
> > giving
> > > a Service_Id and a Host_Id we can get a Application Description. (It
> > > returns the first child if there are multiples)
> > >
> > > My question is aren't there any use cases where a particular Service
> and
> > a
> > > Host can have multiple Application Descriptions? If the answer is No,
> > > everything is fine, otherwise it is confusing.
> > >
> > > Thank you.
> > >
> > > -- Bhathiya
> > >
> >
> >
> >
> > --
> > System Analyst Programmer
> > PTI Lab
> > Indiana University
> >
>
>
>
> --
> -Bhathiya Jayasekara-
> http://www.google.com/profiles/tobhathiyaj
> http://www.facebook.com/#!/bhathiyaj1
>
--
System Analyst Programmer
PTI Lab
Indiana University
Re: Need a clarification on getDeploymentDescription() method in
Registry API
Posted by Bhathiya Jayasekara <to...@gmail.com>.
Hi Lahiru,
Thank you for the reply. I understand what you say. But I have some
questions.
What do you suggest, is it fine to keep the current implementation of above
method which returns the first child always or should it be changed?
Why isn't there a method to get deployment description by name, which is
more obvious and clear than current implementation?
Thank you.
-- Bhathiya
On Tue, Jun 26, 2012 at 7:37 PM, Lahiru Gunathilake <gl...@gmail.com>wrote:
> Hi Bhathiya,
>
> There could be usecases, but very likely rare.. If users wants to change
> something we recommend them not to create an application descriptor for
> each and every configuratin change in its application descriptor. So the
> recommended way is it have one application descriptor and change the
> configuration dynamically by putting required value in the request
> header(WorkflowExectutionContextHeader).
>
> So we give high precedence to incoming request scheduling configuration, so
> if you change any value there in the request we simply ignore the value you
> have in the registry and use the header configuration for that particular
> request.
>
> Hope this helps !
>
> Lahiru
> On Tue, Jun 26, 2012 at 9:26 AM, Bhathiya Jayasekara
> <to...@gmail.com>wrote:
>
> > Hi devs,
> >
> > I have a confusion about "*getDeploymentDescription(String serviceId,
> > String hostId)" *method in AiravataJCRRegistry.java. In this method,
> giving
> > a Service_Id and a Host_Id we can get a Application Description. (It
> > returns the first child if there are multiples)
> >
> > My question is aren't there any use cases where a particular Service and
> a
> > Host can have multiple Application Descriptions? If the answer is No,
> > everything is fine, otherwise it is confusing.
> >
> > Thank you.
> >
> > -- Bhathiya
> >
>
>
>
> --
> System Analyst Programmer
> PTI Lab
> Indiana University
>
--
-Bhathiya Jayasekara-
http://www.google.com/profiles/tobhathiyaj
http://www.facebook.com/#!/bhathiyaj1
Re: Need a clarification on getDeploymentDescription() method in
Registry API
Posted by Lahiru Gunathilake <gl...@gmail.com>.
Hi Bhathiya,
There could be usecases, but very likely rare.. If users wants to change
something we recommend them not to create an application descriptor for
each and every configuratin change in its application descriptor. So the
recommended way is it have one application descriptor and change the
configuration dynamically by putting required value in the request
header(WorkflowExectutionContextHeader).
So we give high precedence to incoming request scheduling configuration, so
if you change any value there in the request we simply ignore the value you
have in the registry and use the header configuration for that particular
request.
Hope this helps !
Lahiru
On Tue, Jun 26, 2012 at 9:26 AM, Bhathiya Jayasekara
<to...@gmail.com>wrote:
> Hi devs,
>
> I have a confusion about "*getDeploymentDescription(String serviceId,
> String hostId)" *method in AiravataJCRRegistry.java. In this method, giving
> a Service_Id and a Host_Id we can get a Application Description. (It
> returns the first child if there are multiples)
>
> My question is aren't there any use cases where a particular Service and a
> Host can have multiple Application Descriptions? If the answer is No,
> everything is fine, otherwise it is confusing.
>
> Thank you.
>
> -- Bhathiya
>
--
System Analyst Programmer
PTI Lab
Indiana University