]> rtime.felk.cvut.cz Git - frescor/frsh.git/commit
Implemented support for contract renegotiation
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 23 Apr 2009 11:23:20 +0000 (13:23 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 23 Apr 2009 11:23:20 +0000 (13:23 +0200)
commit9483d1c9372f42d39af18b6615ea13052a5702ed
treef949883fdbf9b4a136eefdb1f0eff2272905e6b5
parentc73ff50690752e3f45746841f2921eeb197381c0
Implemented support for contract renegotiation

This patch changes significantly the interface between FCB and resource
managers and allocators. There no longer exist cancel_* method. The main
negotiation methods (manager.reserve_contracts, allocator.change_vreses) now
use an interface which supports the semantic offered by
frsh_group_change_mode_sync() i.e. in one negotiation operation, there might
be a combination of multiple requests to negotiate, renegotiate or cancel
contracts. Resource managers process these requests atomically, i.e.  either
all requests succeed or none of them.

The interface for implementing individual resource managers and allocators
remains the same with one exception - fres_sa_scenario_for_each_contract()
was replaced by fres_sa_scenario_for_each_no_cancel_contract().
21 files changed:
.topdeps [new file with mode: 0644]
.topmsg [new file with mode: 0644]
fres/cbroker/fcb.c
fres/cbroker/fcb.idl
fres/contract/fres_contract.h
fres/contract/fres_error.c
fres/contract/fres_error.h
fres/resalloc/fra.idl
fres/resalloc/fra_generic.c
fres/resalloc/fra_generic.h
fres/resalloc/fres_vres.h
fres/resmng/fres_sa_scenario.h
fres/resmng/frm.idl
fres/resmng/frm_generic.c
fres/resmng/frm_generic.h
frsh_api/frsh_contract.c
resources/cluster_tree/frm_cluster_tree.c
resources/cpucg/mngr/frm_cgcpu.c
resources/dummy/frm_dummy.c
resources/fpga/frm_fpga.c
resources/item/frm_item.c