[Aglets-developer] How can the incoming agents communicate to the ManagerAgent ..?
Status: Beta
Brought to you by:
cat4hire
From: Anil K. <akr...@ya...> - 2005-11-14 05:47:53
|
Hi Luca, I am just browsing through the "aglets-developer (read-only)" posts and replies on source forge.net. I find one of your reply (solution) post to Mr.PhaniIndhra's request , interesting and looks like it is related to my work. For your easiness i attached the post following to this mail. I have a question on your solution to Mr.PhaniIndhra. In your solution you asked to "exploit an agent (called MangerAgent) as interface to the running tasks, thus incoming agents asks for running tasks to it and and communicate to it when tasks are finished." But how can the in coming agent send a message to the ManagerAgent..? Incoming agent does not know the proxy on which the Manager is running so it can not send the message to the Manager agent. How can we solve this ..? Do you have a mechanism that will tell all the incoming agents about the proxy that the ManagerAgent is running. Appreciate your help on this. Thanks Anil --- Luca Ferrari wrote: > Phani Indhra's cat, on 11/10/2005 6.47, walking on > the keyboard wrote: > > Once the first aglet comes in i create a file > with the name "TASKIDS.txt " , if it is not already > created.And write the task ID to it in a line and > proceed doing the work for the task . > > If "TASKIDS.txt " is already created i read each > line in the file and compare it with the taskdID of > the just arrived aglet. ( Note : Comparision is > for as there can be multiple disict TaskIDs in this > file at a time ) . If taskID does not exist proceed > further with work .If it exists , > > the aglet gets disposed(); > > > > This is a possible solution, but I suggest you to > use a manager agent on > each system. In other words, exploit an agent as > interface to the > running tasks, thus incoming agents asks for running > tasks to it and > communicate to it when tasks are finished. In this > way, you can keep the > table in memory or, in future release, can use other > storing systems > (DBMS) without requiring any changes to the task > agents. > > Hope this helps, > Luca > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com |