From: Marcos D. de A. <ma...@cs...> - 2008-09-30 12:43:58
|
Hi Amrutha, I think I understood what you need, but I am afraid you will have to implement that. You can extend the GridResource class in order to make it (i) query the policy for information about the resource utilised and (ii) make it request a job from whoever has it in your case. That would be the receiver-initiated case. For the sender- initiated case, you can query the GridResource for the ResourceCharacteristics and make the decision based on the number of processing elements available. Please have a look at the method getResourceDynamicInfo() of GridSim class: /** * Gets the GridResource dynamic fnformation * @param resourceID the resource ID * @return An object of Accumulator containing the GridResource load or * <tt>null</tt> if a GridResource doesn't exist or an error occurs * @pre resourceID > 0 * @post $none */ public Accumulator getResourceDynamicInfo(int resourceID) That might be what you need. I apologise if I have not understood what you need. Thanks for your interest in GridSim. Regards, Marcos On 26/09/2008, at 3:20 AM, amrutha karunakaran wrote: > hi.thanks for replying.sorry for the late reply.i actually need the > push(sender-initiated), pull algorithm(receiver-initiated) which is > used to schedule jobs across different grid resource.In sender- > initiated algorithms the load on the resource is calculated and > compared with a threshold value(i think this can be self defined) > if its below threshold then the job is given to that resource or > migrated to the other resource where the same process of > calculating and comparing is carried out. In receiver-initiated > algorithms the load on the resource is calculated and if its below > a certain threshold then the resources take jobs.i am sorry if its > not clear.i can explain again.your reply would help me a lot. > > Sorry forgot the difference.the difference between both is that in > sender initiated the sender initiates while in the receiver > initiated the receiver initiates.In receiver intiated the resource > which intends to recieves does not migrate the job as in sender. Marcos Dias de Assuncao Grid Computing and Distributed Systems (GRIDS) Laboratory Department of Computer Science and Software Engineering The University of Melbourne, Australia Email: ma...@cs... ------------- "No serious sociologist any longer believes that the voice of the people expresses any divine or specially wise idea. The voice of the people expresses the mind of the people, and that mind is made up for it by the group leaders in whom it believes and by those persons who understand the manipulation of the public opinion. It is composed of inherited prejudices and symbols and cliché's and verbal formulas supplied to them by the leaders." Edward L. Bernays |