Next: The UserScheduler class
Up: Scheduler at agents level
Previous: Scheduling from the agents
Contents
To aggregate the responses of the SeD s, DIET uses an aggregation method
which is called by the agents. This method is chosen from the SeD s
by defining the aggregator type (see Section 7.3.2).
By default, two aggregator types are proposed by DIET:
DIET_AGG_DEFAULT and DIET_AGG_PRIORITY. In the last versions of DIET, we
introduced a new aggregator type: DIET_AGG_USER. Using this
aggregator, the user can define its own aggregation method to be used by
the agents.
Figure 7.2 presents the global schedulers classes
organization in DIET. By choosing the DIET_AGG_USER aggregator, the user
commands the GlobalScheduler class to load an external module containing
a UserScheduler class overloading the aggregate method.
Figure 7.2:
Schedulers classes organization in DIET.
|
The user-defined aggregation method just needs to sort the responses from the
SeD s. By locating the aggregation method on the agent, we can use different
scheduling strategies which could not be implemented at the SeD level. These
schedulers can also avoid some scheduling problems while submitting asynchronous
jobs (with Round-Robin schedulers for example).
Next: The UserScheduler class
Up: Scheduler at agents level
Previous: Scheduling from the agents
Contents
DIET Team - 2008-07-17