21,11 → 21,12 |
|
// Configure theses modules by commenting out the appropiate lines |
|
#include "fsf_hierarchical.h" // |
#include "fsf_hierarchical.h" // |
#include "fsf_shared_objects.h" |
#include "fsf_dynamic_reclaiming.h" // |
#include "fsf_dynamic_reclaiming.h" // |
#include "fsf_spare_capacity.h" |
//#include "fsf_distributed_services.h" |
#include "fsf_distributed.h" // |
#include "fsf_distributed_spare_capacity.h" // |
|
#ifndef _FSF_H_ |
#define _FSF_H_ |
47,8 → 48,6 |
#define FSF_SPARE_CAPACITY_MODULE_SUPPORTED 0 |
|
//Return warnings if spare_capacity module is not included: |
|
//get rid of the pritfs (t.b.d) |
|
#define fsf_set_contract_reclamation_parameters \ |
(contract, budget_max, period_min, granularity,\ |
69,29 → 68,25 |
|
#endif //FSF_SPARE_CAPACITY_MODULE_SUPPORTED |
|
#ifndef FSF_DISTRIBUTED_SERVICES_MODULE_SUPPORTED |
#define FSF_DISTRIBUTED_SERVICES_MODULE_SUPPORTED 0 |
#else |
#ifndef FSF_DISTRIBUTED_MODULE_SUPPORTED |
#define FSF_DISTRIBUTED_MODULE_SUPPORTED 0 |
#endif //FSF_DISTRIBUTED_MODULE_SUPPORTED |
|
//system topology, it is the same in all the |
//nodes involved |
fsf_system_topology_t system = |
{ 1, // number of networks |
{ 1, //network id |
3, //number of nodes |
// in the network |
{ 1, 2, 3, 0, 0 } //node ids |
}, |
{ 0, 0, { 0, 0, 0, 0, 0 } }, |
{ 0, 0, { 0, 0, 0, 0, 0 } }, |
{ 0, 0, { 0, 0, 0, 0, 0 } } |
} |
#ifndef FSF_DISTRIBUTED_SPARE_CAPACITY_MODULE_SUPPORTED |
#define FSF_DISTRIBUTED_SPARE_CAPACITY_MODULE_SUPPORTED 0 |
|
//Return warnings if distributed_spare_capacity module is not included: |
|
//this value should be different in each node. |
//But may be modified on-line before starting |
//network/remote negotiations |
fsf_node_id_t local_node_id = 1; |
#define fsf_set_contract_granted_capacity_flag(contract,granted_capacity_flag)\ |
( FSF_WRN_MODULE_NOT SUPPORTED ) |
|
#define fsf_get_contract_granted_capacity_flag(contract,granted_capacity_flag)\ |
( FSF_WRN_MODULE_NOT SUPPORTED ) |
|
#definr fsf_set_server_capacity(server,new_period,new_budget)\ |
( FSF_WRN_MODULE_NOT SUPPORTED ) |
|
#endif //FSF_DISTRIBUTED_SERVICES_MODULE_SUPPORTED |
#endif //FSF_DISTRIBUTED_SPARE_CAPACITY_MODULE_SUPPORTED |
|
|
#endif // _FSF_H_ |