Package mungbean

Examples of mungbean.Server


@RunWith(JDaveRunner.class)
public class GridFsStorageIntegrationTest extends Specification<GridFsStorage> {
    public class WithStorage {

        public GridFsStorage create() {
            return new Mungbean(new Settings(), new Server("localhost", 27017)).openDatabase(new ObjectId().toHex()).openStorage("foobar");
        }
View Full Code Here


                auths.add(new Authentication(database, user, password));
            }
        }
        Settings settings = new Settings();
        // TODO make settings configurable from clojure
        executor = new SingleNodeDbOperationExecutor(settings, new Server(host, port, auths.toArray(new Authentication[auths.size()])));
    }
View Full Code Here

    private final DBOperationExecutor executor;

    public MungbeanConfiguration(String host, int port) {
        List<Authentication> auths = new ArrayList<Authentication>();
        Settings settings = new Settings();
        executor = new SingleNodeDbOperationExecutor(settings, new Server(host, port, auths.toArray(new Authentication[auths.size()])));
    }
View Full Code Here

TOP

Related Classes of mungbean.Server

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.