Package de.flapdoodle.embed.process.distribution

Examples of de.flapdoodle.embed.process.distribution.GenericVersion


        // 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);
            member.process = member.executable.start();
            member.address = new ServerAddress(Network.getLocalHost().getHostName(), member.config.net().getPort());
View Full Code Here

TOP

Related Classes of de.flapdoodle.embed.process.distribution.GenericVersion

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.