Re: [jade-develop] Terminating a container...


Subject: Re: [jade-develop] Terminating a container...
From: Giovanni Rimassa (rimassa@ce.unipr.it)
Date: Thu Jan 23 2003 - 09:33:58 MET


Caire Giovanni wrote:

>Hi Peter,
>
>In the current official version of JADE-LEAP there is no "elegant" way to do that. In the next version (available soon) it will be possible to configure a container so that it automatically dies when empty.
>
>Bye
>
>Giovanni
>
You can have an agent that registers as a tool with the AMS, and when
detects that a container is empty issues a (request kill-container) to
the AMS.
So, you can detect empty containers and shut them down automatically.
There is no way to create them automatically, though...

HTH,

    Giovanni (Rimassa)

>
>-----Original Message-----
>From: Peter Ebben [mailto:Peter.Ebben@telin.nl]
>Sent: mercoledì 22 gennaio 2003 10.25
>To: JADE-develop
>Subject: [jade-develop] Terminating a container...
>
>
>Hello JADE-ers,
>
>Just a quick question: Is it possible to automatically terminate an
>agent container when the last agent running on that container, dies?
>How?
>
>I am using a distributed JADE-LEAP agent platform (JADE 2.5 with LEAP
>2.1) and I am launching agents from the command line (using a LEAP
>properties file). I am *not* using the inProcess interface (so I
>probably cannot use setCloseVM()).
>
>The setup consists of a Main Container and several peripheral containers
>(both j2se and pJava). Agents running in the peripheral containers
>contact agents in the Main Container, perform those tasks that they need
>to do (in close cooperation with the agents in the Main Container), and
>can eventually be closed by end users (the agents in question provide a
>GUI to the user).
>
>However, when the agents in the peripheral containers die, the (empty)
>containers keep on running, and users have to explicitly kill the
>container as well (for example, by pressing Control-C in the console
>window). Is there a simple, yet elegant, solution to automatically kill
>a container when the last agent running in the container terminates?
>
>Any answers will be appreciated.
>
>Kind regards,
>
>Peter Ebben
>
>_______________________________________________
>jade-develop mailing list
>jade-develop@sharon.cselt.it
>http://sharon.cselt.it/mailman/listinfo/jade-develop
>UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe
>_______________________________________________
>jade-develop mailing list
>jade-develop@sharon.cselt.it
>http://sharon.cselt.it/mailman/listinfo/jade-develop
>UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe
>
>
>.
>

-- 
	         Giovanni Rimassa
     Dipartimento di Ingegneria dell'Informazione
         Universita` di Parma - Parma (ITALY)
    Phone: +39 0521 905712 -  Fax: +39 0521 905723



This archive was generated by hypermail 2a22 : Thu Jan 23 2003 - 09:30:34 MET