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 <[email protected]>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 <
> [email protected]
> > 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 <[email protected]
> > >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
> > > <[email protected]>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
>

Reply via email to