Package mungbean

Examples of mungbean.Settings


@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


@RunWith(JDaveRunner.class)
public class PojoWithIdIntegrationTest extends Specification<Database> {
    public class WithDatabase {
        public Database create() {
            return new Mungbean(new Settings(), "localhost", 27017).openDatabase(new ObjectId().toHex());
        }
View Full Code Here

@RunWith(JDaveRunner.class)
public class PojoIntegrationTest extends Specification<Database> {
    public class WithDatabase {
        public Database create() {
            return new Mungbean(new Settings(), "localhost", 27017).openDatabase(new ObjectId().toHex());
        }
View Full Code Here

            String password = get(authentication, "password");
            if (database != null) {
                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

public class MungbeanConfiguration {
    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.Settings

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.