Subversion Repositories shark

Rev

Rev 889 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
881 trimarchi 1
//fsf.h
2
//===========================================================
3
//       FFFFFFIII   RRRRR      SSTTTTTTT
4
//      FF         IIR   RR    SS
5
//     FF           IR        SS
6
//    FFFFFF         RRRR    SSSSST
7
//   FF       FI       RRR  SS
8
//  FF         II     RRR  SS
9
// FF           IIIIIR    RS
10
//
11
// FSF(FIRST Scheduling Framework) available functionality
12
//============================================================
13
 
14
#include "fsf_configuration_parameters.h"
15
#include "fsf_opaque_types.h"
16
#include "fsf_basic_types.h"
17
#include "fsf_core.h"
889 trimarchi 18
#include "fsf_implementation_specific.h"
881 trimarchi 19
 
20
 
21
 
22
// Configure theses modules by commenting out the appropiate lines
23
 
902 trimarchi 24
#include "fsf_hierarchical.h"                 //
881 trimarchi 25
#include "fsf_shared_objects.h"
902 trimarchi 26
#include "fsf_dynamic_reclaiming.h"           //
881 trimarchi 27
#include "fsf_spare_capacity.h"
902 trimarchi 28
#include "fsf_distributed.h"                  //
29
#include "fsf_distributed_spare_capacity.h"   //
881 trimarchi 30
 
31
#ifndef _FSF_H_
32
#define _FSF_H_
33
 
34
#ifndef FSF_HIERARCHICAL_MODULE_SUPPORTED
35
    #define FSF_HIERARCHICAL_MODULE_SUPPORTED        0
36
 
37
#endif  //FSF_HIERARCHICAL_MODULE_SUPPORTED
38
 
39
#ifndef FSF_SHARED_OBJECTS_MODULE_SUPPORTED
40
    #define FSF_SHARED_OBJECTS_MODULE_SUPPORTED      0
41
#endif  //FSF_SHARED_OBJECTS_MODULE_SUPPORTED
42
 
43
#ifndef FSF_DYNAMIC_RECLAIMING_MODULE_SUPPORTED
44
    #define FSF_DYNAMIC_RECLAIMING_MODULE_SUPPORTED  0
45
#endif  //FSF_DYNAMIC_RECLAIMING_MODULE_SUPPORTED
46
 
47
#ifndef FSF_SPARE_CAPACITY_MODULE_SUPPORTED
48
    #define FSF_SPARE_CAPACITY_MODULE_SUPPORTED      0
49
 
50
    //Return warnings if spare_capacity module is not included:
51
 
52
    #define fsf_set_contract_reclamation_parameters  \
53
      (contract, budget_max, period_min, granularity,\
54
       utilization_set, quality,  importance)        \
55
       ( FSF_WRN_MODULE_NOT SUPPORTED )
56
 
57
    #define fsf_get_contract_reclamation_parameters  \
58
      (contract, budget_max, period_min, granularity,\
59
       utilization_set, quality, importance)         \
60
       ( FSF_WRN_MODULE_NOT SUPPORTED )
61
 
62
    #define fsf_request_change_quality_and_importance\
63
      (server, new_importance, new_quality)          \
64
       ( FSF_WRN_MODULE_NOT SUPPORTED )
65
 
66
    #define fsf_get_total_quality (server,total_quality)\
67
       ( FSF_WRN_MODULE_NOT SUPPORTED )
68
 
69
#endif  //FSF_SPARE_CAPACITY_MODULE_SUPPORTED
70
 
902 trimarchi 71
#ifndef FSF_DISTRIBUTED_MODULE_SUPPORTED
72
    #define FSF_DISTRIBUTED_MODULE_SUPPORTED 0
73
#endif  //FSF_DISTRIBUTED_MODULE_SUPPORTED
881 trimarchi 74
 
902 trimarchi 75
#ifndef FSF_DISTRIBUTED_SPARE_CAPACITY_MODULE_SUPPORTED
76
    #define FSF_DISTRIBUTED_SPARE_CAPACITY_MODULE_SUPPORTED 0
77
 
78
    //Return warnings if distributed_spare_capacity module is not included:
881 trimarchi 79
 
902 trimarchi 80
    #define fsf_set_contract_granted_capacity_flag(contract,granted_capacity_flag)\
81
       ( FSF_WRN_MODULE_NOT SUPPORTED )
82
 
83
    #define fsf_get_contract_granted_capacity_flag(contract,granted_capacity_flag)\
84
       ( FSF_WRN_MODULE_NOT SUPPORTED )
85
 
86
    #definr fsf_set_server_capacity(server,new_period,new_budget)\
87
       ( FSF_WRN_MODULE_NOT SUPPORTED )
881 trimarchi 88
 
902 trimarchi 89
#endif  //FSF_DISTRIBUTED_SPARE_CAPACITY_MODULE_SUPPORTED
881 trimarchi 90
 
902 trimarchi 91
 
881 trimarchi 92
#endif // _FSF_H_