[Groonga-commit] droonga/express-droonga at 8681d34 [master] Add utility methods to start/stop synchronization of hostNames from the cluster

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 5 13:20:43 JST 2014


YUKI Hiroshi	2014-11-05 13:20:43 +0900 (Wed, 05 Nov 2014)

  New Revision: 8681d3413750570d2942526da0478ecbdbccf385
  https://github.com/droonga/express-droonga/commit/8681d3413750570d2942526da0478ecbdbccf385

  Message:
    Add utility methods to start/stop synchronization of hostNames from the cluster

  Modified files:
    lib/droonga-protocol/connection-pool.js

  Modified: lib/droonga-protocol/connection-pool.js (+12 -0)
===================================================================
--- lib/droonga-protocol/connection-pool.js    2014-11-05 13:13:53 +0900 (f6f2e71)
+++ lib/droonga-protocol/connection-pool.js    2014-11-05 13:20:43 +0900 (bf0069e)
@@ -199,6 +199,18 @@ ConnectionPool.prototype = {
     this._serf.shutdown();
     delete this._serf;
     this._watching = false;
+  },
+
+
+  startSyncHostNamesFromCluster: function() {
+    this.updateHostNamesFromCluster()
+      .then((function(hostNames) {
+        this.startWatchClusterChanges();
+      }).bind(this));
+  },
+
+  stopSyncHostNamesFromCluster: function() {
+    this.endWatchClusterChanges();
   }
 };
 
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index