]> rtime.felk.cvut.cz Git - frescor/frsh-forb.git/blob - fres/ressched/frs.idl
Fixed uninitialized variable warnings
[frescor/frsh-forb.git] / fres / ressched / frs.idl
1 #ifndef _RS_IDL
2 #define _RS_IDL
3
4 #include "../contract/fres_contract_idl.idl"
5
6 module fres {
7         /**
8          * Interface to the scheduler
9          * 
10          */
11         interface resource_scheduler {
12                 /**
13                  * Creates or changes VRESes.
14                  * 
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.
26                  *
27                  * @param schedulable_contracts Contracts for VRESes
28                  * to be created or (if they already exist)
29                  * changed.
30                  * 
31                  * @return Zero on success, non-zero error number in
32                  * case of error.
33                  */
34                 long change_vreses(in contract::ptr_seq schedulable_contracts);
35                 /** 
36                  * Cancel VRESes given by their IDs.
37                  * 
38                  * @param ids 
39                  */
40                 void cancel_vreses(in contract::id_seq ids);
41         };
42 };
43
44 #endif