4 #include "../contract/fres_contract_idl.idl"
8 * Interface to the scheduler
11 interface resource_scheduler {
13 * Creates or changes VRESes.
15 * This method is called after the contracts are
16 * negotiated with the resource manager. The manager
17 * together with the contract broker ensure that the
18 * state after applying the changes specified by @a
19 * schedulable_contracts parameter is schedulable. It
20 * is up to the scheduler to apply the changes in such
21 * way that schedulability is maintained during the
22 * change. The changes are received in the same order
23 * as returned by the manager, so if the manager
24 * already prepares the order of aplying changes, the
25 * scheduler can use it.
27 * @param schedulable_contracts Contracts for VRESes
28 * to be created or (if they already exist)
31 * @return Zero on success, non-zero error number in
34 long change_vreses(in contract::ptr_seq schedulable_contracts);
36 * Cancel VRESes given by their IDs.
40 void cancel_vreses(in contract::id_seq ids);