Merge branch 'thgeneric' of ssh://git.onelab.eu/git/sfa into thgeneric
[sfa.git] / sfa / generic / pl.py
index aa0ef5b..167b58a 100644 (file)
@@ -8,16 +8,28 @@ import sfa.managers.aggregate_manager
 
 class pl (Generic):
     
+    # use the standard api class
     def api_class (self):
         return sfa.server.sfaapi.SfaApi
 
-    def registry_class (self) : 
+    # the manager classes for the server-side services
+    def registry_manager_class (self) : 
         return sfa.managers.registry_manager
-    def slicemgr_class (self) : 
+    def slicemgr_manager_class (self) : 
         return sfa.managers.slice_manager
-    def aggregate_class (self) :
+    def aggregate_manager_class (self) :
         return sfa.managers.aggregate_manager
 
+    # driver class for server-side services, talk to the whole testbed
     def driver_class (self):
         return sfa.plc.pldriver.PlDriver
 
+    # for the component mode, to be run on board planetlab nodes
+    # manager class
+    def component_manager_class (self):
+        return sfa.managers.component_manager_pl
+    # driver_class
+    def component_driver_class (self):
+        return sfa.plc.plcomponentdriver.PlComponentDriver
+
+