Next: int pvm_init_worker_class(char *farm_name
Up: int pvm_get_worker_class_id (char
Previous: Client side
- if opcode is GET_WORKER_CLASS_ID
- extract (unpack) farm name and worker class name.
- Search for the farm item by farm name.
- If item is not found send a reply containing FARM_NOT_CREATED error message.
- Get the farm item (FItem), using this get access to the worker class list (WCList).
- Search for worker class item by the worker class name.
- If not found then, put the request on the list of pending requests and look for other messages (while the farmer task blocks for a reply).
- If item is found, then see the WCItem and get the worker class id (wcid).
- Send the reply containing the wcid.
Sameer Shende