Package jmockmongo

Examples of jmockmongo.CommandHandler


      String[] db = fc.split("\\.", 2);

      if ("$cmd".equals(db[1])) {
        BSONObject command = query.getQuery();
        String c = command.keySet().iterator().next();
        CommandHandler handler = commands.get(c);
        if (handler != null) {
          BSONObject result = handler.handleCommand(db[0], command);
          e.getChannel().write(
              ReplyMessage.reply((Message) e.getMessage(), 0, 0,
                  0, result).getBytes());
          return;
        }
View Full Code Here

TOP

Related Classes of jmockmongo.CommandHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.