[Groonga-commit] droonga/express-droonga at a9bedac [master] Add an API to report connected engines for debugging

Back to archive index

YUKI Hiroshi null+****@clear*****
Sun Nov 30 19:18:52 JST 2014


YUKI Hiroshi	2014-11-30 19:18:52 +0900 (Sun, 30 Nov 2014)

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

  Message:
    Add an API to report connected engines for debugging

  Modified files:
    index.js

  Modified: index.js (+7 -0)
===================================================================
--- index.js    2014-11-30 18:34:04 +0900 (30dc0d3)
+++ index.js    2014-11-30 19:18:52 +0900 (5bddcfe)
@@ -44,6 +44,13 @@ function droonga(application, params) {
       connectionPool.startSyncHostNamesFromCluster();
     });
   }
+
+  application.get(params.prefix + '/engines', function(request, response, next) {
+    response.jsonp({
+      clusterId: connectionPool.clusterId,
+      hostNames: connectionPool.hostNames
+    });
+  });
 }
 
 exports.initialize = droonga;
-------------- next part --------------
HTML����������������������������...
Télécharger 



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