From: Agustín C. H. <ag...@ds...> - 2008-02-15 07:40:21
|
Hi Jack, The way u can do that is by means of events. Resources can send an event to themselves, and on the reception of the event, they can do the statistics u want. The way to implement that is quite easy. In the body function of resources u have to add some piece of code like the following: super.send(super.get_id(), time_period, YOUR_EVENT); and, in the processEvent() function, u have to catch that event. Hope this is useful, Agustin KWAN Shun Kit Jack escribió: > Hi, > > My name is Jack Kwan and I am a student in Hong Kong, I am now studying > self-managing approaches in Grid computing systems. > > In my developed model, there is a server which accepts the Gridlets > submitted by the User, and do some regular calculations/predictions at > regular time interview. I would like to ask what to do actually if I want > to have the control over the "time" elapsed? Say, at each 10 time units > each Resource do some statistics about the processing power and Gridlet > information. > > Thanks a lot for your help in advance. > > Best regards, > KWAN Shun Kit Jack > > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Gridsim-users mailing list > Gri...@li... > https://lists.sourceforge.net/lists/listinfo/gridsim-users > -- ======================================================== Agustin Caminero PhD Student Computing Systems Department The University of Castilla La Mancha, Albacete. Spain. Phone: +34 967 599 200 Ext. 2693. Fax: +34 967 599 343 http://www.i3a.uclm.es/ ======================================================== |