Package jmockmongo.wire

Examples of jmockmongo.wire.ReplyHandler


    bootstrap = new ServerBootstrap(factory);

    bootstrap.setPipelineFactory(new ChannelPipelineFactory() {
      public ChannelPipeline getPipeline() {

        final ReplyHandler handler = new ReplyHandler();
        handler.setCommandHandler("isMaster", new IsMaster());
        handler.setCommandHandler("listDatabases", new ListDatabases());
        handler.setCommandHandler("count", new Count(MockMongo.this));
        handler.setCommandHandler("findandmodify", new FindAndModify(
            MockMongo.this));
        handler.setCommandHandler("dbstats", new DbStats(
            MockMongo.this.data));
        handler
            .setQueryHandler(new DefaultQueryHandler(MockMongo.this));

        handler.setInsertHandler(new DefaultInsertHandler(
            MockMongo.this));

        handler.setUpdateHandler(new DefaultUpdateHandler(
            MockMongo.this));

        handler.setDeleteHandler(new DefaultDeleteHandler(
            MockMongo.this));

        return Channels.pipeline(new SimpleChannelHandler() {

          @Override
View Full Code Here

TOP

Related Classes of jmockmongo.wire.ReplyHandler

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.