Browse Source

kill API support for subscription types. 'meonly' is the default. Comment out lines in callers which used 'meonly'

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@335 e5f2f494-b856-4b98-b285-d166d9295462
Michael Graff 15 years ago
parent
commit
342fdf3ded

+ 3 - 3
src/bin/bigtool/run_bigtool.py

@@ -32,9 +32,9 @@ def _prepare_fake_data(bigtool):
 if __name__ == '__main__':
     try:
         cc = ISC.CC.Session()
-        cc.group_subscribe("BigTool", "*", "meonly")
-        cc.group_subscribe("ConfigManager", "*", "meonly")
-        cc.group_subscribe("Boss", "*", "meonly")
+        #cc.group_subscribe("BigTool", "*", "meonly")
+        #cc.group_subscribe("ConfigManager", "*", "meonly")
+        #cc.group_subscribe("Boss", "*", "meonly")
 
         tool = BigTool(cc)
         _prepare_fake_data(tool)   

+ 2 - 2
src/bin/parkinglot/ccsession.cc

@@ -42,8 +42,8 @@ CommandSession::CommandSession() :
         session_.establish();
         session_.subscribe("ParkingLot", "*");
         session_.subscribe("Boss", "ParkingLot");
-        session_.subscribe("ConfigManager", "*", "meonly");
-        session_.subscribe("statistics", "*", "meonly");
+        //session_.subscribe("ConfigManager", "*", "meonly");
+        //session_.subscribe("statistics", "*", "meonly");
     } catch (...) {
         throw std::runtime_error("SessionManager: failed to open sessions");
     }

+ 1 - 2
src/lib/cc/cpp/session.cc

@@ -197,14 +197,13 @@ Session::recvmsg(ElementPtr& env, ElementPtr& msg, bool nonblock)
 }
 
 void
-Session::subscribe(std::string group, std::string instance, std::string subtype)
+Session::subscribe(std::string group, std::string instance)
 {
     ElementPtr env = Element::create(std::map<std::string, ElementPtr>());
 
     env->set("type", Element::create("subscribe"));
     env->set("group", Element::create(group));
     env->set("instance", Element::create(instance));
-    env->set("subtype", Element::create(subtype));
 
     sendmsg(env);
 }

+ 1 - 2
src/lib/cc/cpp/session.h

@@ -43,8 +43,7 @@ namespace ISC {
                          ISC::Data::ElementPtr& msg,
                          bool nonblock = true);
             void subscribe(std::string group,
-                           std::string instance = "*",
-                           std::string subtype = "normal");
+                           std::string instance = "*");
             void unsubscribe(std::string group,
                              std::string instance = "*");
             unsigned int group_sendmsg(ISC::Data::ElementPtr& msg,

+ 1 - 3
src/lib/cc/python/ISC/CC/session.py

@@ -125,13 +125,11 @@ class Session:
         self._sequence += 1
         return self._sequence
 
-    def group_subscribe(self, group, instance = "*", subtype = "normal"):
-        """subtype can be 'normal' or 'meonly'"""
+    def group_subscribe(self, group, instance = "*"):
         self.sendmsg({
             "type": "subscribe",
             "group": group,
             "instance": instance,
-            "subtype": subtype,
         })
 
     def group_unsubscribe(self, group, instance = "*"):