Package de.flapdoodle.embed.mongo.config

Examples of de.flapdoodle.embed.mongo.config.Storage


            }
            savePortToProjectProperties();

            IMongodConfig config = new MongodConfigBuilder()
                    .version(getVersion()).net(new Net(bindIp, port, Network.localhostIsIPv6()))
                    .replication(new Storage(getDataDirectory(), null, 0))
                    .build();

            executable = MongodStarter.getInstance(runtimeConfig).prepare(config);
        } catch (UnknownHostException e) {
            throw new MojoExecutionException("Unable to determine if localhost is ipv6", e);
View Full Code Here


        }
        String replicaSetName = "es-test-" + type.configKey;
        // Create 3 mongod processes
        ImmutableList.Builder<MongoReplicaSet.Member> builder = ImmutableList.builder();
        for (int i = 1; i <= 3; ++i) {
            Storage storage = new Storage("target/" + replicaSetName + '/' + i, replicaSetName, 20);
            MongoReplicaSet.Member member = new MongoReplicaSet.Member();
            member.config = new MongodConfigBuilder().version(Versions.withFeatures(new GenericVersion(rsSettings.get("version"))))
                .net(new de.flapdoodle.embed.mongo.config.Net(ports[i - 1], Network.localhostIsIPv6())).replication(storage).build();
            logger.trace("replSetName in config: {}", member.config.replication().getReplSetName());
            member.executable = type.starter.prepare(member.config);
View Full Code Here

TOP

Related Classes of de.flapdoodle.embed.mongo.config.Storage

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.