6c496f4f7439ed46a60e23f7a89739a5dab5ec85
[sfa.git] / sfa / generic / void.py
1 # This setting is designed for running a registry-only SFA instance
2
3 from sfa.generic import Generic
4
5 class void (Generic):
6     
7     # the importer class
8     # when set to None, the importer only performs the basic stuff
9     # xxx this convention probably is confusing, since None suggests that 
10     # *nothing* should be done..
11     # xxx need to refactor the importers anyway
12     def importer_class (self): 
13         return None
14         
15     # use the standard api class
16     def api_class (self):
17         import sfa.server.sfaapi
18         return sfa.server.sfaapi.SfaApi
19
20     # the manager classes for the server-side services
21     def registry_manager_class (self) : 
22         import sfa.managers.registry_manager
23         return sfa.managers.registry_manager.RegistryManager
24     def slicemgr_manager_class (self) : 
25         import sfa.managers.slice_manager
26         return sfa.managers.slice_manager.SliceManager
27     # most likely you'll want to turn OFF the aggregate in sfa-config-tty
28     # SFA_AGGREGATE_ENABLED=false
29     def aggregate_manager_class (self) :
30         import sfa.managers.aggregate_manager
31         return sfa.managers.aggregate_manager.AggregateManager
32
33     # driver class for server-side services, talk to the whole testbed
34     def driver_class (self):
35         import sfa.managers.driver
36         return sfa.managers.driver.Driver
37