avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hawkes" <jhaw...@adsnm.com>
Subject Re: Startable doesn't has a isRunning() interface ?
Date Wed, 08 Oct 2003 17:06:21 GMT
I would say it's the responsibility of the component to act as a container
for any threads it starts up.  Just because a component implements Startable
does not necessarily mean that it is going to allocate its own threads.
(Granted, that will be the case 99.9% of the time.)

----- Original Message ----- 
From: "Stephen McConnell" <mcconnell@apache.org>
To: "Avalon Developers List" <dev@avalon.apache.org>
Sent: Wednesday, October 08, 2003 10:53 AM
Subject: Re: Startable doesn't has a isRunning() interface ?


>
>
> Jonathan Hawkes wrote:
>
> >Yes.  An isRunning() method would not be useful to the container.  The
> >container knows whether the startable isRunning or not (ie: it has called
> >start() and not stop() ).
> >
>
> Yeeees .. but!
>
> Consdider the component in question has been started. The component gets
> everything it needs from the container and goes about its business and in
> the case of a startable component this typically means that the component
> is creating its own thread of execution.  Assuming that something goes
> wrong - there is not contractual interface through which the component
> can notify the container that it's execution thread has terminated.
>
> I think the real underlying issue here is component/container
> responsibility. Who should be creating and supervising/monitoring the
> thread - the component or the container?
>
> Stephen.
>
> >
> >
> >----- Original Message ----- 
> >From: "Yannick Menager" <ymenager_ml@fastmail.fm>
> >To: <dev@avalon.apache.org>
> >Sent: Wednesday, October 08, 2003 10:17 AM
> >Subject: Startable doesn't has a isRunning() interface ?
> >
> >
> >
> >
> >>Is there any reason Startable doesn't has a isRunning() ( or something
> >>like that ) interface ?
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
> >>For additional commands, e-mail: dev-help@avalon.apache.org
> >>
> >>
> >>
> >>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
> >For additional commands, e-mail: dev-help@avalon.apache.org
> >
> >
> >
> >
>
> -- 
>
> Stephen J. McConnell
> mailto:mcconnell@apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
> For additional commands, e-mail: dev-help@avalon.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message